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 incorrect question mark from requestline regex #1302

Merged

Conversation

danlapid
Copy link
Contributor

@danlapid danlapid commented Sep 20, 2024

Fixes #955

The current regex matches
HTTP/1.1 200 OK as requestline instead ofresponseline this is because the regex is too lenient allowing no METHOD field.
According to the RFC (https://datatracker.ietf.org/doc/html/rfc2616#section-5.1) METHOD has to exist and be not empty for the request line.
You can test the regex at https://regex101.com/

@danlapid
Copy link
Contributor Author

@Huachao, would appreciate a review, thanks 😄

@Huachao Huachao merged commit 6649589 into Huachao:master Oct 10, 2024
5 checks passed
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.

API response not highlighted
2 participants