🐛 Fix fe18dfa not sending response when empty

master
KaKi87 2021-02-07 16:16:54 +01:00
parent fe18dfae1e
commit d82a555042
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ module.exports = {
try {
const _res = eval(body);
res.writeHead(200);
if(_res) res.end(_res.toString());
res.end(_res && _res.toString());
} catch(error){
res.writeHead(400);
res.end(error.stack);