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