|
@@ -203,7 +203,7 @@ function dashboard_verification(res, $, guild, args, dashboardLang) {
|
|
|
$('#text code.prefix').prepend(escapeText(process.env.prefix));
|
|
|
$('.channel#verification').addClass('selected');
|
|
|
let body = $.html();
|
|
|
- res.writeHead(200, {'Content-Length': body.length});
|
|
|
+ res.writeHead(200, {'Content-Length': Buffer.byteLength(body)});
|
|
|
res.write( body );
|
|
|
return res.end();
|
|
|
}
|
|
@@ -213,7 +213,7 @@ function dashboard_verification(res, $, guild, args, dashboardLang) {
|
|
|
$('#text code.prefix').prepend(escapeText(process.env.prefix));
|
|
|
$('.channel#verification').addClass('selected');
|
|
|
let body = $.html();
|
|
|
- res.writeHead(200, {'Content-Length': body.length});
|
|
|
+ res.writeHead(200, {'Content-Length': Buffer.byteLength(body)});
|
|
|
res.write( body );
|
|
|
return res.end();
|
|
|
}
|
|
@@ -223,7 +223,7 @@ function dashboard_verification(res, $, guild, args, dashboardLang) {
|
|
|
$('#text code.prefix').prepend(escapeText(rows[0].prefix));
|
|
|
$('.channel#verification').addClass('selected');
|
|
|
let body = $.html();
|
|
|
- res.writeHead(200, {'Content-Length': body.length});
|
|
|
+ res.writeHead(200, {'Content-Length': Buffer.byteLength(body)});
|
|
|
res.write( body );
|
|
|
return res.end();
|
|
|
}
|
|
@@ -268,7 +268,7 @@ function dashboard_verification(res, $, guild, args, dashboardLang) {
|
|
|
$('#text code.prefix').prepend(escapeText(prefix));
|
|
|
}
|
|
|
let body = $.html();
|
|
|
- res.writeHead(200, {'Content-Length': body.length});
|
|
|
+ res.writeHead(200, {'Content-Length': Buffer.byteLength(body)});
|
|
|
res.write( body );
|
|
|
return res.end();
|
|
|
} );
|