修复未传入用户变量的 bug

This commit is contained in:
fofolee 2022-05-02 10:21:33 +08:00
parent 46aa645792
commit 1b9c9e6e2f

View File

@ -600,7 +600,7 @@ window.quickcommandHttpServer = () => {
// 错误返回 500 // 错误返回 500
if (stderr) return httpResponse(res, 500, stderr) if (stderr) return httpResponse(res, 500, stderr)
return httpResponse(res, 200, stdout) return httpResponse(res, 200, stdout)
}) }, userVars)
} }
httpServer = http.createServer() httpServer = http.createServer()
httpServer.on('request', (req, res) => { httpServer.on('request', (req, res) => {