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

fix(adapter): make adapter loading error more clear by using platform-specific adapters explicitly (#5837)

This commit is contained in:
Dmitriy Mozgovoy
2023-08-26 20:31:13 +03:00
committed by GitHub
parent b3e327dcc9
commit 9a414bb6c8
+1 -1
View File
@@ -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() || '';