mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
fix content-length for index
This commit is contained in:
parent
4a3b635166
commit
f031616984
@ -11,7 +11,7 @@ module.exports = function(req, res) {
|
||||
config: config
|
||||
});
|
||||
res.writeHead(200, {
|
||||
"Content-Length": html.length,
|
||||
"Content-Length": Buffer.byteLength(html, "UTF-8"),
|
||||
"Content-Type": "text/html; charset=utf-8"
|
||||
});
|
||||
res.end(html);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user