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

Clarify use of @buffered and only update content-length when #finish. #2149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Jan 30, 2024

Potential fix for #2148.

I don't think Rack::Response should bother caching content length or update the header.

falcon never trusts the user supplied content-length header. Puma may? If the user supplied content length header is incorrect, it can be a major security issue.

Therefore, I wonder if we should avoid manipulating the content-length header at all.

This PR is just me trying out ideas, but maybe we can figure out a better solution.

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

1 participant