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);
|
debug(formHeaders);
|
||||||
// generally uploads don't use Chunked Encoding (some systems have issues with it)
|
// 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.
|
// 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); }
|
if (err) { cb(err); }
|
||||||
onResponse(resp);
|
onResponse(resp);
|
||||||
resp.resume();
|
resp.resume();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@coolaj86/urequest",
|
"name": "@coolaj86/urequest",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"description": "A lightweight drop-in replacement for request",
|
"description": "A lightweight drop-in replacement for request",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
Loading…
Reference in New Issue