Comparing version 1.1.3 to 1.2.0
@@ -254,3 +254,3 @@ var Promise, S, addErrorData, bhttpAPI, bhttpErrors, concatStream, createCookieJar, debug, debugRequest, debugResponse, devNull, doPayloadRequest, doRedirect, errors, extend, formData, formFixArray, http, https, isStream, makeRequest, ofTypes, packageConfig, prepareCleanup, prepareDefaults, prepareOptions, preparePayload, prepareProtocol, prepareRequest, prepareSession, prepareUrl, processResponse, querystring, redirectGet, redirectUnchanged, sink, spy, stream, streamLength, toughCookie, urlUtil, util, _; | ||
} | ||
if ((_ref = request.options.method) === "post" || _ref === "put" || _ref === "patch") { | ||
if ((_ref = request.options.method) !== "get" && _ref !== "head" && _ref !== "delete") { | ||
if ((request.options.encodeJSON || (request.options.formFields != null)) && !multipart) { | ||
@@ -328,2 +328,4 @@ debugRequest("got url-encodable form-data"); | ||
return Promise.resolve(); | ||
} else { | ||
return Promise.resolve(); | ||
} | ||
@@ -330,0 +332,0 @@ } else { |
{ | ||
"name": "bhttp", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "A sane HTTP client library for Node.js with Streams2 support.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3150164
750