Skip to content

Commit ee1e81f

Browse files
committed
1 parent bf53329 commit ee1e81f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/XMLHttpRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ function XMLHttpRequest(opts) {
528528
+ "fs.writeFileSync('" + contentFile + "', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');"
529529
+ "fs.unlinkSync('" + syncFile + "');"
530530
+ "});"
531-
+ (data ? "req.write('" + data.replace(/'/g, "\\'") + "');":"")
531+
+ (data ? "req.write('" + JSON.stringify(data).slice(1,-1).replace(/'/g, "\\'") + "');":"")
532532
+ "req.end();";
533533
// Start the other Node Process, executing this string
534534
var syncProc = spawn(process.argv[0], ["-e", execString]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xmlhttprequest-ssl",
33
"description": "XMLHttpRequest for Node",
4-
"version": "1.6.1",
4+
"version": "1.6.2",
55
"author": {
66
"name": "Michael de Wit"
77
},

0 commit comments

Comments
 (0)