Skip to content

Commit

Permalink
fix(middleware): do not add 'null' to Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jan 1, 2019
1 parent e6cfe7c commit 136be0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Expand Up @@ -69,7 +69,7 @@ module.exports = function wrapper(context) {
let content = context.fs.readFileSync(filename);
content = handleRangeHeaders(content, req, res);

let contentType = mime.getType(filename);
let contentType = mime.getType(filename) '' ||;

// do not add charset to WebAssembly files, otherwise compileStreaming will fail in the client
if (!/\.wasm$/.test(filename)) {
Expand Down

0 comments on commit 136be0b

Please sign in to comment.