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

Remove forbidden HTTP1 headers even if no connection header is present #311

Conversation

fabianfett
Copy link
Member

Motivation

Currently we only remove forbidden HTTP/1.1 headers when translating to HTTP/2.0, if a connection header is present. Since a connection header is not required on HTTP/1.1, forward forbidden headers are currently sometimes forwarded (like "transfer-encoding").

Changes

  • Remove forbidden HTTP/1.1 headers, even if no connection header is present.

Result

We don't leak forbidden headers.

@fabianfett fabianfett requested a review from Lukasa November 24, 2021 07:56
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Nov 24, 2021
@Lukasa
Copy link
Contributor

Lukasa commented Nov 24, 2021

There's an allocation regression on nightly, but that doesn't have anything to do with this patch. Merging over the failure.

@Lukasa Lukasa merged commit deca1c3 into apple:main Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants