Comparing version 0.3.0 to 0.3.1
@@ -434,3 +434,10 @@ 'use strict'; | ||
options.method = this.method || Request.defaults.method; | ||
options.headers = Object.assign({}, Request.defaults.headers, this.headers); | ||
for (const key in options.headers) { | ||
if (typeof options.headers[key] !== 'string' && typeof options.headers[key] !== 'number') { | ||
delete options.headers[key]; | ||
} | ||
} | ||
options.rejectUnauthorized = typeof this.rejectUnauthorized === 'boolean' ? this.rejectUnauthorized : Request.defaults.rejectUnauthorized; | ||
@@ -437,0 +444,0 @@ |
{ | ||
"name": "oohttp", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "object-oriented http(s) request handler", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
30879
857