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

Do not check Content-Type upon 204 code #4

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

christiaangoossens
Copy link
Contributor

204 No Content does not return any content and thus, according to the HTTP specification, does not require a Content-Type. None of the examples in RFC 7644 include a Content-Type for 204 responses, even if they do for 200 responses.

Therefore, we should not check it on 204 responses, the header should be ignored.

@suvera suvera merged commit dd0c436 into suvera:master Aug 16, 2024
1 check passed
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