2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

fix: fix ignore set withCredentials false (#2582)

This commit is contained in:
ZhaoXC
2019-12-09 15:52:45 +08:00
committed by Yasu Flores
parent 13c948e661
commit dc4bc49673
+2 -2
View File
@@ -129,8 +129,8 @@ module.exports = function xhrAdapter(config) {
}
// Add withCredentials to request if needed
if (config.withCredentials) {
request.withCredentials = true;
if (!utils.isUndefined(config.withCredentials)) {
request.withCredentials = !!config.withCredentials;
}
// Add responseType to request if needed