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

Dont inject content type on empty body #2079

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Conversation

skarimo
Copy link
Member

@skarimo skarimo commented Jul 26, 2024

Our test match requests based on headers. To ensure tests without requestBody properly work, lets not attach the header.

@skarimo skarimo requested a review from a team as a code owner July 26, 2024 19:32
Copy link
Contributor

@jack-edmonds-dd jack-edmonds-dd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://stackoverflow.com/a/29784642 this is a safe change to make. But can we add why we're making it?

@skarimo skarimo merged commit 3fea1f4 into master Jul 26, 2024
13 checks passed
@skarimo skarimo deleted the sherz/dont-inject-body-on-empty branch July 26, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants