aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/HttpServer.hx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx
index 66668a7..7622708 100644
--- a/src/server/HttpServer.hx
+++ b/src/server/HttpServer.hx
@@ -111,6 +111,7 @@ class HttpServer {
}
static function readFileError(err:Dynamic, res:ServerResponse, filePath:String):Void {
+ res.setHeader("Content-Type", getMimeType("html"));
if (err.code == "ENOENT") {
res.statusCode = 404;
var rel = JsPath.relative(dir, filePath);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage