From 50704fdccce1d4205cfe3fabaa4f352ef32a9055 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 7 Jul 2018 16:19:00 -0600 Subject: [PATCH] v1.3.3: bugfix form-data request object --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bf2756f..73a2f84 100644 --- a/index.js +++ b/index.js @@ -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(); diff --git a/package.json b/package.json index 94b0e4e..6ae2def 100644 --- a/package.json +++ b/package.json @@ -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": [