main/task_http.c

changeset 64
326c38d3681b
parent 61
c7b8a9931b59
child 80
9d2c0a85ee6e
--- a/main/task_http.c	Thu Jul 04 21:48:53 2019 +0200
+++ b/main/task_http.c	Fri Jul 05 16:11:55 2019 +0200
@@ -139,6 +139,8 @@
 	sprintf(c_type, "text/html");
     } else if (strcmp(".css", &temp_url[strlen(temp_url) - 4]) == 0) {
 	sprintf(c_type, "text/css");
+    } else if (strcmp(".log", &temp_url[strlen(temp_url) - 4]) == 0) {
+        sprintf(c_type, "text/plain");
     } else if (strcmp(".js", &temp_url[strlen(temp_url) - 3]) == 0) {
 	sprintf(c_type, "text/javascript");
     } else if (strcmp(".json", &temp_url[strlen(temp_url) - 5]) == 0) {

mercurial