From c2de260d5141238435e7a8e4ff35d026528f1e91 Mon Sep 17 00:00:00 2001 From: jetstream0 <49297268+jetstream0@users.noreply.github.com> Date: Mon, 30 Oct 2023 06:38:50 +0000 Subject: [PATCH] minor --- preview.ts | 8 +++++++- templates/post.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/preview.ts b/preview.ts index 2aeadb2..f7d414a 100644 --- a/preview.ts +++ b/preview.ts @@ -18,7 +18,7 @@ createServer((req, res) => { return res.end(); } //set content type - let non_utf8_content_types: string[] = ["image/png", "image/gif"]; + let non_utf8_content_types: string[] = ["image/png", "image/gif", "image/jpeg", "video/mp4"]; let content_type: string; switch (req_path.split(".")[1]) { case "html": @@ -40,6 +40,12 @@ createServer((req, res) => { case "gif": content_type = "image/gif"; break; + case "jpg": + content_type = "image/jpeg"; + break; + case "mp4": + content_type = "video/mp4"; + break; default: content_type = "text/plain"; } diff --git a/templates/post.html b/templates/post.html index b6278aa..7cba912 100644 --- a/templates/post.html +++ b/templates/post.html @@ -31,7 +31,7 @@
- [[ endif ]] + [[ endif ]] [[ component:makoto-styling ]]