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) { |