From c75d602d6920d44430d88b0fca6be0e76ae14eb6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 31 Mar 2019 18:58:15 -0700 Subject: [PATCH] ircd::http: Fix case comparisons for header strings in header tool. --- ircd/http.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/http.cc b/ircd/http.cc index c8b896fe4..a58aed433 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -563,7 +563,7 @@ const (const header &header) { // true to continue; false to break (for_each protocol) - return header != key; + return iequals(header.first, key)? false : true; }); } @@ -589,7 +589,7 @@ const string_view ret; for_each([&key, &ret](const auto &header) { - if(header == key) + if(iequals(header.first, key)) { ret = header.second; return false;