Fix Content-Type

This commit is contained in:
Bryan Ashby 2017-10-29 21:02:36 -06:00
parent 30d3b62032
commit a5f72a345c
1 changed files with 1 additions and 1 deletions

View File

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