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 the issue with early hints display when comma's are in the URLs #2275

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

tkadlec
Copy link
Contributor

@tkadlec tkadlec commented Aug 17, 2022

Previously, we were splitting the early_hint_headers by comma ,. But in situations where comma's were used in the URL specified, that broke display.

This commit instead splits the headers by using a positive lookahead matching the < character. That way the < is still included in the individual strings. Then we strip out the last character for each hint if that character is a comma, just for cleanliness. This fixes #2248

…t in situations where comma's were used in the URL specified, that broke display.

This commit instead splits the headers by using a positive lookahead matching the '<' character. That way the '<' is still included in the individual strings. Then we strip out the last character for each hint if that character is a comma, just for cleanliness. This fixes #2248"
@tkadlec tkadlec merged commit 6c18dee into master Aug 17, 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.

In the waterfall request details, Early Hints are breaking on commas
1 participant