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": [