digest-fetch
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -64,6 +64,6 @@ const canRequire = typeof(require) == 'function' | ||
async parseAuth (data) { | ||
const h = data.headers.get("www-authenticate") | ||
const h = data.headers['www-authenticate'] | ||
this.lastAuth = h | ||
if (h.length < 5) { | ||
if (!h || h.length < 5) { | ||
this.hasAuth = false | ||
@@ -70,0 +70,0 @@ return |
{ | ||
"name": "digest-fetch", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "digest auth request plugin for fetch/node-fetch", | ||
@@ -31,2 +31,4 @@ "main": "digest-fetch-src.js", | ||
"eslint": "^5.9.0", | ||
"istanbul": "^1.1.0-alpha.1", | ||
"mocha": "^5.2.0", | ||
"node-fetch": "^2.3.0", | ||
@@ -33,0 +35,0 @@ "webpack": "^4.26.1", |
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
256235
20
697
10