Skip to content

Commit dfc0133

Browse files
committed
Merge branch 'master' of https://github.com/yhirose/cpp-httplib
2 parents 001b8a5 + c4ebc31 commit dfc0133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ inline const char *find_content_type(const std::string &path) {
12341234
auto ext = file_extension(path);
12351235
if (ext == "txt") {
12361236
return "text/plain";
1237-
} else if (ext == "html") {
1237+
} else if (ext == "html" || ext == "htm") {
12381238
return "text/html";
12391239
} else if (ext == "css") {
12401240
return "text/css";

0 commit comments

Comments
 (0)