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
wsgi response with status code 304 contains a body #862
Comments
HTTP 200 ✔️
HTTP 304 ❌
Curl also prints a warning because it didn't expect to retrieve content for a 304 response:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eventlet.wsgi.server
adds an empty chunked body to 304 responses. This violates RFC 9110 which states that:This causes errors in reverse proxies like caddy or traefik, which tend to strictly adhere to the HTTP spec:
The content describes an empty chunk as outlined in https://en.wikipedia.org/wiki/Chunked_transfer_encoding#Format
A possible solution might be to drop the
Transfer-Encoding
header for 304 responses.Minimal reproducible example: https://github.com/dgtlmoon/flask-304-modified-extra-in-reply-test
see dgtlmoon/changedetection.io#2053 for more details
The text was updated successfully, but these errors were encountered: