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

[RFC] Enforce HTTP::Server content-length RFC compliance #10536

Open
Blacksmoke16 opened this issue Mar 23, 2021 · 1 comment
Open

[RFC] Enforce HTTP::Server content-length RFC compliance #10536

Blacksmoke16 opened this issue Mar 23, 2021 · 1 comment

Comments

@Blacksmoke16
Copy link
Member

Discussion

#10353 made it so that HTTP::Server does not automatically add the content-length header when it shouldn't be present according to https://tools.ietf.org/html/rfc7230#section-3.3.2.

The question is, should HTTP::Server also enforce RFC compliance? I.e. removing the content-length header if the response status is a 204 and it's present.

@straight-shoota
Copy link
Member

I don't think there's much benefit in being overly restrictive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants