html files may be .htm

This commit is contained in:
Bastien Durel 2019-10-23 09:52:21 +02:00
parent 7a3abd2768
commit d1abf96581
No known key found for this signature in database
GPG key ID: 30173931BA57B105

View file

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