Selaa lähdekoodia

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

yhirose 6 vuotta sitten
vanhempi
sitoutus
dfc01338eb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
   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";