diff --git a/lib/defaults/index.js b/lib/defaults/index.js index a883bfe5c5..27c71b45e6 100644 --- a/lib/defaults/index.js +++ b/lib/defaults/index.js @@ -37,7 +37,7 @@ const defaults = { transitional: transitionalDefaults, - adapter: ['xhr', 'http'], + adapter: platform.isNode ? 'http' : 'xhr', transformRequest: [function transformRequest(data, headers) { const contentType = headers.getContentType() || '';