Explorar o código

Merge branch 'master' of https://github.com/yhirose/cpp-httplib

yhirose %!s(int64=6) %!d(string=hai) anos
pai
achega
dfc01338eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -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";