v1.3.3: bugfix form-data request object
This commit is contained in:
parent
7255134e9f
commit
50704fdccc
2
index.js
2
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();
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in New Issue