You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In node adapter, the default response format is data string when request with data: schema or string when request with normal schema; and in browser adapter, it will been returned in string format default.
Section/Content To Improve
https://github.com/axios/axios?tab=readme-ov-file#request-config
The default value of responseType is
json
. But I found the default object defined in https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js has no responseType, in other words, the responseType value is undefined.Suggested Improvement
In node adapter, the default response format is data string when request with
data:
schema or string when request with normal schema; and in browser adapter, it will been returned in string format default.axios/lib/adapters/http.js
Lines 221 to 263 in d844227
axios/lib/adapters/http.js
Lines 535 to 591 in d844227
axios/lib/adapters/xhr.js
Lines 100 to 101 in d844227
Relevant File(s)
The text was updated successfully, but these errors were encountered: