From c9b920cea600b5fbe84ad7ab0b279275243faacb Mon Sep 17 00:00:00 2001 From: RblSb Date: Mon, 1 Jan 2024 07:31:02 +0300 Subject: Flashback time per item, improve webm/webp support --- src/server/HttpServer.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/server/HttpServer.hx') diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx index 4bf16c4..acb8955 100644 --- a/src/server/HttpServer.hx +++ b/src/server/HttpServer.hx @@ -21,13 +21,16 @@ class HttpServer { "css" => "text/css", "json" => "application/json", "png" => "image/png", - "jpg" => "image/jpg", + "jpg" => "image/jpeg", + "jpeg" => "image/jpeg", "gif" => "image/gif", + "webp" => "image/webp", "svg" => "image/svg+xml", "ico" => "image/x-icon", "wav" => "audio/wav", "mp3" => "audio/mpeg", "mp4" => "video/mp4", + "webm" => "video/webm", "woff" => "application/font-woff", "ttf" => "application/font-ttf", "eot" => "application/vnd.ms-fontobject", @@ -152,7 +155,7 @@ class HttpServer { } static function isMediaExtension(ext:String):Bool { - return ext == "mp4" || ext == "mp3" || ext == "wav"; + return ext == "mp4" || ext == "webm" || ext == "mp3" || ext == "wav"; } static final matchLang = ~/^[A-z]+/; -- cgit v1.2.3