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

fix: Use split_once. #164

Merged
merged 1 commit into from
Apr 20, 2023
Merged

fix: Use split_once. #164

merged 1 commit into from
Apr 20, 2023

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Apr 20, 2023

We had forgotten that : is a valid part of a header value, so splitting on : ended up splitting into too many parts and thus failing the parser. This PR changes to use split_once, which splits on first occurrence. Since Header Names are not allowed to contain : this will be fine

We had forgotten that `:` is a valid part of a header value, so
splitting on `'` ended up splitting into too many parts and thus failing
the parser. This PR changes to use split_once, which splits on first
occurrence. Since Header Names are not allowed to contains `:` this will
be fine
@chriswk chriswk requested a review from sighphyre April 20, 2023 10:47
@chriswk chriswk self-assigned this Apr 20, 2023
@chriswk chriswk added the bug Something isn't working label Apr 20, 2023
Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@chriswk chriswk merged commit 208ba30 into main Apr 20, 2023
@chriswk chriswk deleted the fix/handleColonInHeaderValue branch April 20, 2023 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants