We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f926de commit 983cfc2Copy full SHA for 983cfc2
lib/XMLHttpRequest.js
@@ -477,7 +477,7 @@ exports.XMLHttpRequest = function() {
477
+ "fs.writeFileSync('" + contentFile + "', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');"
478
+ "fs.unlinkSync('" + syncFile + "');"
479
+ "});"
480
- + (data ? "req.write('" + data.replace(/'/g, "\\'") + "');":"")
+ + (data ? "req.write('" + JSON.stringify(data).slice(1,-1).replace(/'/g, "\\'") + "');":"")
481
+ "req.end();";
482
// Start the other Node Process, executing this string
483
var syncProc = spawn(process.argv[0], ["-e", execString]);
0 commit comments