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

Enforce mandatory and allowed pseudo-headers. #91

Merged
merged 2 commits into from
Apr 12, 2019

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Apr 12, 2019

Motivation:

HTTP/2 header blocks have a certain set of pseudo-headers that are mandatory
and allowed on them. We currently don't enforce that, which makes it possible to send
malformed requests or responses, as well as to have to handle them. That's not great.

Modifications:

  • Added enforcement of the allowed pseudo-header fields.

Result:

Better pseudo-header field enforcement.

Motivation:

HTTP/2 header blocks have a certain set of pseudo-headers that are mandatory
and allowed on them. We currently don't enforce that, which makes it possible to send
malformed requests or responses, as well as to have to handle them. That's not great.

Modifications:

- Added enforcement of the allowed pseudo-header fields.

Result:

Better pseudo-header field enforcement.
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Apr 12, 2019
@Lukasa Lukasa added this to the 1.0.2 milestone Apr 12, 2019
@Lukasa Lukasa requested a review from weissi April 12, 2019 11:41
Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Lukasa Lukasa merged commit 7acb02b into apple:master Apr 12, 2019
@Lukasa Lukasa deleted the cb-enforce-valid-pseudo-headers branch April 12, 2019 12:59
@Lukasa Lukasa added 🆕 semver/minor Adds new public API. and removed 🔨 semver/patch No public API change. labels Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants