axios-cookiejar-support
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -107,4 +107,10 @@ "use strict"; | ||
if (cookieString) { | ||
const currentCookie = config.headers['Cookie']; | ||
config.headers['Cookie'] = [currentCookie, cookieString].filter(c => !!c).join(';\x20'); | ||
if (config.headers) { | ||
const currentCookie = config.headers['Cookie']; | ||
config.headers['Cookie'] = [currentCookie, cookieString].filter(c => !!c).join(';\x20'); | ||
} else { | ||
config.headers = { | ||
'Cookie': cookieString | ||
}; | ||
} | ||
} | ||
@@ -111,0 +117,0 @@ } |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"main": "./lib/index", | ||
@@ -42,8 +42,8 @@ "directories": { | ||
"decache": "4.4.0", | ||
"eslint": "4.19.0", | ||
"eslint": "5.0.0", | ||
"fast-async": "^6.3.0", | ||
"intelli-espower-loader": "1.0.1", | ||
"mocha": "5.0.3", | ||
"nock": "9.1.7", | ||
"power-assert": "1.5.0", | ||
"mocha": "5.1.0", | ||
"nock": "9.2.4", | ||
"power-assert": "1.6.0", | ||
"rimraf": "^2.6.2" | ||
@@ -50,0 +50,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
126671
24
921