diff --git a/src/tesseswebserverhttputils.hpp b/src/tesseswebserverhttputils.hpp index 0ab81e3..3ceca4f 100644 --- a/src/tesseswebserverhttputils.hpp +++ b/src/tesseswebserverhttputils.hpp @@ -77,6 +77,34 @@ class HttpUtils { { return "text/html"; } + if(ext == ".txt" || ext == ".log" || ext == ".twss") + { + return "text/plain"; + } + if(ext == ".woff") + { + return "application/x-font-woff"; + } + if(ext == ".vtt") + { + return "text/vtt"; + } + if(ext == ".svg") + { + return "image/svg+xml"; + } + if(ext == ".webp") + { + return "image/webp"; + } + if(ext == ".vcf") + { + return "text/v-card"; + } + if(ext == ".rss" || ext == ".xml" || ext == ".atom" || ext == ".rdf") + { + return "application/xml"; + } if(ext == ".js") { return "text/javascript"; @@ -108,6 +136,14 @@ class HttpUtils { if(ext == ".mp4") { return "video/mp4"; + } + if(ext == ".mov") + { + return "video/quicktime"; + } + if(ext == ".m4a") + { + return "audio/mp4"; } if(ext == ".webm") { @@ -117,6 +153,10 @@ class HttpUtils { { return "application/manifest+json"; } + if(ext == ".ico") + { + return "image/x-icon"; + } return "application/octet-stream"; }