Comparing version 4.2.5 to 4.2.6
@@ -63,3 +63,3 @@ "use strict"; | ||
promise = new Promise(function (resolve) { | ||
https.request(reqOptions, function (res) { | ||
var clientRequest = https.request(reqOptions, function (res) { | ||
var inStream = new stream_1.Readable({ read: function () { } }); | ||
@@ -74,3 +74,5 @@ res.on('error', function (err) { | ||
}); | ||
}).end(); | ||
}); | ||
clientRequest.write(req.bodyString()); | ||
clientRequest.end(); | ||
}); | ||
@@ -77,0 +79,0 @@ return [2 /*return*/, promise]; |
@@ -21,3 +21,3 @@ import * as https from "https"; | ||
const promise: Promise<Res> = new Promise(resolve => { | ||
https.request(reqOptions, (res) => { | ||
let clientRequest = https.request(reqOptions, (res) => { | ||
const inStream = new Readable({ read() {} }); | ||
@@ -32,3 +32,5 @@ res.on('error', (err: any) => { | ||
}); | ||
}).end(); | ||
}); | ||
clientRequest.write(req.bodyString()); | ||
clientRequest.end(); | ||
}); | ||
@@ -35,0 +37,0 @@ |
{ | ||
"name": "http4js", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"description": "A lightweight HTTP toolkit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -6,4 +6,3 @@ { | ||
"declaration": true, | ||
"strict": true, | ||
"strictPropertyInitialization": false | ||
"strict": true | ||
}, | ||
@@ -10,0 +9,0 @@ "include": [ |
138661
3118