Skip to content
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

don't mutate headers #52

Merged
merged 1 commit into from
Nov 5, 2019
Merged

don't mutate headers #52

merged 1 commit into from
Nov 5, 2019

Conversation

refractalize
Copy link
Member

Bug: if you pass headers in they can be modified during a POST request (adding things like content-type and content-length). This is normally bad if you plan to use the headers object for another request.

Fix: make sure we clone the headers when they're specified.

@refractalize refractalize merged commit 08a2d2b into master Nov 5, 2019
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