mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix(adapter): make adapter loading error more clear by using platform-specific adapters explicitly (#5837)
This commit is contained in:
@@ -37,7 +37,7 @@ const defaults = {
|
|||||||
|
|
||||||
transitional: transitionalDefaults,
|
transitional: transitionalDefaults,
|
||||||
|
|
||||||
adapter: ['xhr', 'http'],
|
adapter: platform.isNode ? 'http' : 'xhr',
|
||||||
|
|
||||||
transformRequest: [function transformRequest(data, headers) {
|
transformRequest: [function transformRequest(data, headers) {
|
||||||
const contentType = headers.getContentType() || '';
|
const contentType = headers.getContentType() || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user