From a5f72a345ceeae3496206ea3aa3f467806fca363 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 29 Oct 2017 21:02:36 -0600 Subject: [PATCH] Fix Content-Type --- core/servers/content/web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/servers/content/web.js b/core/servers/content/web.js index 92aa05c3..8a9903b4 100644 --- a/core/servers/content/web.js +++ b/core/servers/content/web.js @@ -223,7 +223,7 @@ exports.getModule = class WebServerModule extends ServerModule { } const headers = { - 'Content-Type' : mimeTypes.contentType(filePath) || mimeTypes.contentType('.bin'), + 'Content-Type' : mimeTypes.contentType(paths.basename(filePath)) || mimeTypes.contentType('.bin'), 'Content-Length' : stats.size, };