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

Limit the number of splits when parsing headers in the Curb adapter #968

Merged

Conversation

giogam
Copy link
Contributor

@giogam giogam commented Feb 1, 2022

When using headers that contain more than one ":" character the resulting stubbed request will only contain a portion of the original header. This change will prevent the header from being split in more than 2 pieces.

Fixes: #946

When using headers that contain more than one ":" character the
resulting stubbed request will only contain a portion of the original
header. This change will prevent the header from being split in more
than 2 pieces.
@pboling
Copy link

pboling commented May 3, 2022

@bblimke thoughts? Also would this allow us to remove the curb compatibility warning on recent versions of curb?

@bblimke
Copy link
Owner

bblimke commented Aug 2, 2022

@MrBuzz Thank you!

@bblimke bblimke merged commit 524016e into bblimke:master Aug 2, 2022
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.

Curb mocks fail with headers that include more than one colon ":"
3 participants