0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::http: Fix case comparisons for header strings in header tool.

This commit is contained in:
Jason Volk 2019-03-31 18:58:15 -07:00
parent af08458f8d
commit c75d602d69

View file

@ -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;