v1.3.3: bugfix form-data request object

This commit is contained in:
AJ ONeal 2018-07-07 16:19:00 -06:00
parent 7255134e9f
commit 50704fdccc
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ function setDefaults(defs) {
debug(formHeaders);
// generally uploads don't use Chunked Encoding (some systems have issues with it)
// and I don't want to do the work to calculate the content-lengths. This seems to work.
form.submit(finalOpts, function (err, resp) {
req = form.submit(finalOpts, function (err, resp) {
if (err) { cb(err); }
onResponse(resp);
resp.resume();

View File

@ -1,6 +1,6 @@
{
"name": "@coolaj86/urequest",
"version": "1.3.2",
"version": "1.3.3",
"description": "A lightweight drop-in replacement for request",
"main": "index.js",
"files": [