From d1abf96581b335874cb2c9e8d0ccf12f17d3922d Mon Sep 17 00:00:00 2001 From: Bastien Durel Date: Wed, 23 Oct 2019 09:52:21 +0200 Subject: [PATCH] html files may be .htm --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 5cb0db6..1e1b66e 100644 --- a/httplib.h +++ b/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";