mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 04:56:53 +03:00
add support for css files
This commit is contained in:
@@ -120,6 +120,8 @@ esp_err_t set_content_type_from_file(httpd_req_t *req, const char *filename)
|
|||||||
return httpd_resp_set_type(req, "image/x-icon");
|
return httpd_resp_set_type(req, "image/x-icon");
|
||||||
} else if (IS_FILE_EXT(filename, ".js")) {
|
} else if (IS_FILE_EXT(filename, ".js")) {
|
||||||
return httpd_resp_set_type(req, "text/javascript");
|
return httpd_resp_set_type(req, "text/javascript");
|
||||||
|
} else if (IS_FILE_EXT(filename, ".css")) {
|
||||||
|
return httpd_resp_set_type(req, "text/css");
|
||||||
}
|
}
|
||||||
/* This is a limited set only */
|
/* This is a limited set only */
|
||||||
/* For any other type always set as plain text */
|
/* For any other type always set as plain text */
|
||||||
|
|||||||
Reference in New Issue
Block a user