aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/HttpServer.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/HttpServer.hx')
-rw-r--r--src/server/HttpServer.hx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx
index 8e4cf75..4bf16c4 100644
--- a/src/server/HttpServer.hx
+++ b/src/server/HttpServer.hx
@@ -220,9 +220,7 @@ class HttpServer {
}
static function getMimeType(ext:String):String {
- final contentType = mimeTypes[ext];
- if (contentType == null) return "application/octet-stream";
- return contentType;
+ return mimeTypes[ext] ?? return "application/octet-stream";
}
static final ctrlCharacters = ~/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/g;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage