We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 898a507 commit d582ad4Copy full SHA for d582ad4
src/axios/config.ts
@@ -14,7 +14,8 @@ const defaultRequestInterceptors = (config: InternalAxiosRequestConfig) => {
14
} else if (
15
TRANSFORM_REQUEST_DATA &&
16
config.method === 'post' &&
17
- config.headers['Content-Type'] === 'multipart/form-data'
+ config.headers['Content-Type'] === 'multipart/form-data' &&
18
+ !(config.data instanceof FormData)
19
) {
20
config.data = objToFormData(config.data)
21
}
0 commit comments