2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

chore: upgrade eslint and add fix command

This commit is contained in:
Justin Beckwith
2018-04-06 21:50:20 -07:00
parent 0d110da98c
commit 22c2baf205
4 changed files with 83 additions and 82 deletions
+2 -2
View File
@@ -119,8 +119,8 @@ module.exports = function xhrAdapter(config) {
// Add xsrf header
var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
cookies.read(config.xsrfCookieName) :
undefined;
cookies.read(config.xsrfCookieName) :
undefined;
if (xsrfValue) {
requestHeaders[config.xsrfHeaderName] = xsrfValue;