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, };