mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
html files may be .htm
This commit is contained in:
parent
7a3abd2768
commit
d1abf96581
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue