From 2a225cccef32309be3ae626823d9aa1fd254c868 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Mon, 23 Sep 2024 21:58:28 -0500 Subject: [PATCH] Finished WWWGen --- src/tesseswebserverhttputils.hpp | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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"; }