Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixing FormData content-type handling in XHR#4642

Closed
philBrown wants to merge 1 commit into
axios:masterfrom
philBrown:master
Closed

Fixing FormData content-type handling in XHR#4642
philBrown wants to merge 1 commit into
axios:masterfrom
philBrown:master

Conversation

@philBrown

Copy link
Copy Markdown

Removes the content-type request header if the request body is FormData and the request is made from a standard browser environment.

Fixes #4638 and #4631

Removes the content-type request header if the request body is FormData
and the request is made from a standard browser environment
@philBrown

Copy link
Copy Markdown
Author

Conflicts somewhat with #4640 but I believe handling the headers with normalised keys is more robust.

@philBrown

Copy link
Copy Markdown
Author

Looks like this was fixed elsewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Axios 0.27.1 has a pretty serious problem

1 participant