2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

fix(adapters): improved adapters loading logic to have clear error messages; (#5919)

This commit is contained in:
Dmitriy Mozgovoy
2023-09-26 19:43:25 +03:00
committed by GitHub
parent bc9af51b18
commit e4107797a7
3 changed files with 82 additions and 16 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ const defaults = {
transitional: transitionalDefaults,
adapter: platform.isNode ? 'http' : 'xhr',
adapter: ['xhr', 'http'],
transformRequest: [function transformRequest(data, headers) {
const contentType = headers.getContentType() || '';