supra-http
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -77,7 +77,7 @@ "use strict"; | ||
if (bodyContent) { | ||
mergedOptions.headers['content-length'] = bodyContent.length; | ||
mergedOptions.headers['content-length'] = Buffer.byteLength(bodyContent); | ||
mergedOptions.headers['content-type'] = enums_1.CONTENT_TYPE.ApplicationJson; | ||
} | ||
else if (formContent) { | ||
mergedOptions.headers['content-length'] = formContent.length; | ||
mergedOptions.headers['content-length'] = Buffer.byteLength(formContent); | ||
mergedOptions.headers['content-type'] = enums_1.CONTENT_TYPE.FormUrlEncoded; | ||
@@ -84,0 +84,0 @@ } |
{ | ||
"name": "supra-http", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Circuit breaking http client for NodeJs. And it is fast...", | ||
@@ -5,0 +5,0 @@ "main": "./dist/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
18364