Skip to content

Conversation

@phihag
Copy link
Member

@phihag phihag commented Apr 16, 2025

Add a helper function to find a key in a HTTP header object.

We use the old-fashioned way rather than localCompare, since we only deal with ASCII characters in HTTP header names, and don't want to construct Intl.Collator objects and the like.

Add a helper function to find a key in a HTTP header object.

We use the old-fashioned way rather than `localCompare`, since we only deal with ASCII characters in HTTP header names, and don't want to construct `Intl.Collator` objects and the like.
Copy link
Contributor

@cnschn cnschn left a comment

Choose a reason for hiding this comment

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

lgtm

@cnschn cnschn merged commit 6a7ce5d into master Apr 16, 2025
4 checks passed
@cnschn cnschn deleted the findHTTPHeader branch April 16, 2025 12:12
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.

3 participants