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

Only set Content-Type if we send a body #272

Merged
merged 3 commits into from
Apr 4, 2022
Merged

Conversation

jaller94
Copy link
Contributor

@jaller94 jaller94 commented Apr 3, 2022

Only set "Content-Type" if we are sending a JSON body.

undefined (or empty string) aren't valid JSON, so it might make naïve web servers fail.

@jaller94 jaller94 merged commit 41a2d64 into main Apr 4, 2022
@jaller94 jaller94 deleted the j94/optional-content-type branch April 4, 2022 10:22
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.

None yet

2 participants