Skip to content

Conversation

@erezrokah
Copy link
Contributor

Follow up on #1777 to fix header values such as https://www.example.com

@erezrokah erezrokah requested a review from a team as a code owner February 8, 2021 13:51
@github-actions github-actions bot added the type: bug code to address defects in shipped code label Feb 8, 2021
}

if (line.includes(':')) {
const [key = '', value = ''] = line.split(':', 2)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a port of our Ruby code. TIL limit in Ruby's split doesn't mean the same thing as limit in JavaScript's split.

@erezrokah erezrokah enabled auto-merge (squash) February 8, 2021 14:09
@erezrokah erezrokah merged commit 664cb84 into master Feb 10, 2021
@erezrokah erezrokah deleted the fix/headers_parsing branch February 10, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug code to address defects in shipped code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants