Преглед на файлове

Merge pull request #246 from BastienDurel/htm

html files may be .htm
yhirose преди 6 години
родител
ревизия
c4ebc31345
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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";