Update app/nodejs/index.js
Browse files- app/nodejs/index.js +1 -1
app/nodejs/index.js
CHANGED
@@ -15,5 +15,5 @@ require('http').createServer(async(res,req)=>{
|
|
15 |
}
|
16 |
if(!code) return res.end('no code!');
|
17 |
var resp = await eval(`async(res,req)=>{return (${code})}`)(res,req);
|
18 |
-
if(
|
19 |
}).listen(parseInt(process.argv[2]))
|
|
|
15 |
}
|
16 |
if(!code) return res.end('no code!');
|
17 |
var resp = await eval(`async(res,req)=>{return (${code})}`)(res,req);
|
18 |
+
if(!res.finished ) return res.end(""+resp);
|
19 |
}).listen(parseInt(process.argv[2]))
|