提交 085f95f9 编写于 作者: M Matt Zabriskie

Better formatting

上级 908d12b8
......@@ -98,7 +98,7 @@ module.exports = function xhrAdapter(resolve, reject, config) {
}
// Add headers to the request
if(!xDomain)
if (!xDomain) {
utils.forEach(requestHeaders, function (val, key) {
// Remove Content-Type if data is undefined
if (!data && key.toLowerCase() === 'content-type') {
......@@ -109,6 +109,7 @@ module.exports = function xhrAdapter(resolve, reject, config) {
request.setRequestHeader(key, val);
}
});
}
// Add withCredentials to request if needed
if (config.withCredentials) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册