🐛 Fix 6002bbb 'HPE_INVALID_CHUNK_SIZE' client error

master
KaKi87 2021-02-07 00:39:17 +01:00
parent 6002bbb686
commit fe18dfae1e
1 changed files with 2 additions and 3 deletions

View File

@ -35,13 +35,12 @@ module.exports = {
req.on('end', () => {
try {
const _res = eval(body);
if(_res) res.write(_res.toString());
res.writeHead(200);
if(_res) res.end(_res.toString());
} catch(error){
res.write(error.stack);
res.writeHead(400);
res.end(error.stack);
}
res.end();
});
}
else {