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:
parent
af08458f8d
commit
c75d602d69
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue