aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/HttpServer.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2024-01-01 07:31:02 +0300
committerRblSb <msrblsb@gmail.com>2024-01-01 07:31:02 +0300
commitc9b920cea600b5fbe84ad7ab0b279275243faacb (patch)
treefada67761c471fc461402135a8688e7961d08de7 /src/server/HttpServer.hx
parent0d1fd0f960a64252638eb94f079c0e7747792b95 (diff)
Flashback time per item, improve webm/webp support
Diffstat (limited to 'src/server/HttpServer.hx')
-rw-r--r--src/server/HttpServer.hx7
1 files changed, 5 insertions, 2 deletions
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]+/;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage