mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
fix content-length for index
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user