diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp index d2b3fb4549..96daf55e00 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp @@ -20,7 +20,12 @@ namespace Web::Fetch::Infrastructure { template requires(IsSameIgnoringCV) struct CaseInsensitiveBytesTraits : public Traits> { - static unsigned hash(Span const& span) + static constexpr bool equals(Span const& a, Span const& b) + { + return StringView { a }.equals_ignoring_case(StringView { b }); + } + + static constexpr unsigned hash(Span const& span) { if (span.is_empty()) return 0;