main/task_http.c

changeset 64
326c38d3681b
parent 61
c7b8a9931b59
child 80
9d2c0a85ee6e
equal deleted inserted replaced
63:1d2b4358db4b 64:326c38d3681b
137 137
138 if (strcmp(".html", &temp_url[strlen(temp_url) - 5]) == 0) { 138 if (strcmp(".html", &temp_url[strlen(temp_url) - 5]) == 0) {
139 sprintf(c_type, "text/html"); 139 sprintf(c_type, "text/html");
140 } else if (strcmp(".css", &temp_url[strlen(temp_url) - 4]) == 0) { 140 } else if (strcmp(".css", &temp_url[strlen(temp_url) - 4]) == 0) {
141 sprintf(c_type, "text/css"); 141 sprintf(c_type, "text/css");
142 } else if (strcmp(".log", &temp_url[strlen(temp_url) - 4]) == 0) {
143 sprintf(c_type, "text/plain");
142 } else if (strcmp(".js", &temp_url[strlen(temp_url) - 3]) == 0) { 144 } else if (strcmp(".js", &temp_url[strlen(temp_url) - 3]) == 0) {
143 sprintf(c_type, "text/javascript"); 145 sprintf(c_type, "text/javascript");
144 } else if (strcmp(".json", &temp_url[strlen(temp_url) - 5]) == 0) { 146 } else if (strcmp(".json", &temp_url[strlen(temp_url) - 5]) == 0) {
145 sprintf(c_type, "text/json"); 147 sprintf(c_type, "text/json");
146 } else if (strcmp(".gz", &temp_url[strlen(temp_url) - 3]) == 0) { 148 } else if (strcmp(".gz", &temp_url[strlen(temp_url) - 3]) == 0) {

mercurial