diff options
| author | RblSb <msrblsb@gmail.com> | 2024-01-01 07:31:02 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2024-01-01 07:31:02 +0300 |
| commit | c9b920cea600b5fbe84ad7ab0b279275243faacb (patch) | |
| tree | fada67761c471fc461402135a8688e7961d08de7 /src/server/HttpServer.hx | |
| parent | 0d1fd0f960a64252638eb94f079c0e7747792b95 (diff) | |
Flashback time per item, improve webm/webp support
Diffstat (limited to 'src/server/HttpServer.hx')
| -rw-r--r-- | src/server/HttpServer.hx | 7 |
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]+/; |
