1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Merge pull request #246 from BastienDurel/htm

html files may be .htm
This commit is contained in:
yhirose 2019-10-23 07:06:28 -04:00 committed by GitHub
commit c4ebc31345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1234,7 +1234,7 @@ inline const char *find_content_type(const std::string &path) {
auto ext = file_extension(path); auto ext = file_extension(path);
if (ext == "txt") { if (ext == "txt") {
return "text/plain"; return "text/plain";
} else if (ext == "html") { } else if (ext == "html" || ext == "htm") {
return "text/html"; return "text/html";
} else if (ext == "css") { } else if (ext == "css") {
return "text/css"; return "text/css";