set content-type for appended code bodies
This commit is contained in:
parent
a66d7fe202
commit
b046ae2fa8
2 changed files with 1 additions and 9 deletions
1
app.js
1
app.js
|
|
@ -624,6 +624,7 @@ function rewriteHtmlVersion(req, res, next) {
|
|||
}
|
||||
body += data;
|
||||
res.setHeader('Content-Length', Buffer.byteLength(body));
|
||||
res.setHeader('Content-Type', "application/javascript; charset=utf-8");
|
||||
real_write.call(res, body);
|
||||
real_end.call(res);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue