digest-fetch
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -76,3 +76,6 @@ /// !----------------------------------------------------------------------------------------------------------- | ||
_options.headers = _options.headers || {} | ||
_options.headers.Authorization = auth | ||
_options.headers.Authorization = auth; | ||
if (typeof(_options.headers.set) == 'function') { | ||
_options.headers.set('Authorization', auth) | ||
} | ||
@@ -126,2 +129,6 @@ if (this.logger) this.logger.debug(options) | ||
options.headers.Authorization = digest | ||
if (typeof(options.headers.set) == 'function') { | ||
options.headers.set('Authorization', digest) | ||
} | ||
if (this.logger) this.logger.debug(options) | ||
@@ -128,0 +135,0 @@ |
{ | ||
"name": "digest-fetch", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "digest auth request plugin for fetch/node-fetch also support http basic auth authentication", | ||
@@ -5,0 +5,0 @@ "main": "digest-fetch-src.js", |
Sorry, the diff of this file is too big to display
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
177199
15
926