-
-
Notifications
You must be signed in to change notification settings - Fork 395
Content-Type: "multipart/form-data" is ignored #671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the header is applied automatically by the browser when passing a FormData object in the body. Not sure if that holds true for Axios though but this appears to be the behavior for me using fetch. |
@Isola92 Not the case for Axios + latest Chrome |
Same behavior using react-native: We have to pass content-type with the header param to be able to send form-data. |
It seems like the change adding this
This corroborates what @Isola92 is saying. To fix I think it makes sense to remove this check from the |
Fix #671 - Content-Type: "multipart/form-data" is ignored (when using axios)
In generated axios http-API client there's a line
this prevents us from sending a request with content-type multipart/form-data.
Could anyone tell me what the reason was for this solution?
Replacing this with a simple
fixes the issue
The text was updated successfully, but these errors were encountered: