|
@@ -107,6 +107,8 @@ esp_err_t set_content_type_from_file(httpd_req_t *req, const char *filename)
|
|
|
return httpd_resp_set_type(req, "text/html");
|
|
return httpd_resp_set_type(req, "text/html");
|
|
|
} else if (IS_FILE_EXT(filename, ".jpeg")) {
|
|
} else if (IS_FILE_EXT(filename, ".jpeg")) {
|
|
|
return httpd_resp_set_type(req, "image/jpeg");
|
|
return httpd_resp_set_type(req, "image/jpeg");
|
|
|
|
|
+ } else if (IS_FILE_EXT(filename, ".jpg")) {
|
|
|
|
|
+ return httpd_resp_set_type(req, "image/jpeg");
|
|
|
} else if (IS_FILE_EXT(filename, ".ico")) {
|
|
} else if (IS_FILE_EXT(filename, ".ico")) {
|
|
|
return httpd_resp_set_type(req, "image/x-icon");
|
|
return httpd_resp_set_type(req, "image/x-icon");
|
|
|
}
|
|
}
|