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

Revert "fix(client): send content-length even with no body" #3633

Merged
merged 1 commit into from Apr 16, 2024

Conversation

seanmonstar
Copy link
Member

This reverts commit 172fdfa.

The curl test suite noticed this change, and it was unexpected. curl/curl#13380

On further review, RFC 9112 Section 6.3 states:

If this is a request message and none of the above are true, then the message body length is zero (no message body is present).

So, hyper does not need to do this. Any server that fails to understand there is no body is in direct violation of the spec.

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