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

Add support for HTTP/2 to HTTP lexer #1296

Merged
merged 2 commits into from
Aug 9, 2019

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented Aug 6, 2019

The HTTP lexer only supports requests where the HTTP version is either 1.0 or 1.1. This means that HTTP/0.9 and HTTP/2 cause errors to be generated.

It is a non-goal of lexers to check for semantic correctness and so the simplest solution is to match against version numbers generally.

This fixes #1295.

@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Aug 6, 2019
@pyrmont pyrmont merged commit 1c6df45 into rouge-ruby:master Aug 9, 2019
@pyrmont pyrmont removed the needs-review The PR needs to be reviewed label Aug 9, 2019
@pyrmont pyrmont deleted the feature.http2 branch January 8, 2020 20:08
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.

Support HTTP/2
1 participant