Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(adapter): make adapter loading error more clear by using platform…
…-specific adapters explicitly (#5837)
  • Loading branch information
DigitalBrainJS committed Aug 26, 2023
1 parent b3e327d commit 9a414bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/defaults/index.js
Expand Up @@ -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() || '';
Expand Down

0 comments on commit 9a414bb

Please sign in to comment.