Skip to content

[k2] case insensitive comparing of connection header#1602

Open
Shamzik wants to merge 1 commit intomasterfrom
kshamazov/iequals
Open

[k2] case insensitive comparing of connection header#1602
Shamzik wants to merge 1 commit intomasterfrom
kshamazov/iequals

Conversation

@Shamzik
Copy link
Copy Markdown
Contributor

@Shamzik Shamzik commented Apr 7, 2026

This PR fixes connection header parsing

@Shamzik Shamzik self-assigned this Apr 7, 2026
@Shamzik Shamzik added runtime Feature related to runtime k2 Affects compiler or runtime in K2 mode labels Apr 7, 2026
@Shamzik Shamzik added this to the next milestone Apr 7, 2026
@Shamzik Shamzik requested a review from apolyakov April 7, 2026 18:51
}
} else if (h_name == kphp::http::headers::CONNECTION) {
if (h_value == CONNECTION_KEEP_ALIVE) [[likely]] {
auto iequals{[](std::string_view s1, std::string_view s2) noexcept {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe move std::tolower to header_entry_proj?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

k2 Affects compiler or runtime in K2 mode runtime Feature related to runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants