Skip to content

Don't remove headers for FormData paylods #31

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

Merged
merged 3 commits into from
Dec 21, 2022

Conversation

twoplustwoone
Copy link
Contributor

When serializing request with a FormData payload, we're clearing the Content-Type header. It seems we included this as an old fix, but after some consideration it doesn't seem to make much sense to be doing this. If a user sets a header, whether by API spec or manually, we should respect them trying to send the request with that content type.

@twoplustwoone twoplustwoone marked this pull request as ready for review December 21, 2022 19:36
@twoplustwoone twoplustwoone merged commit 31a6e29 into main Dec 21, 2022
@twoplustwoone twoplustwoone deleted the fix/dont-remove-headers-for-formdata-payloads branch December 21, 2022 19:36
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.

1 participant