mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +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)
|
(const header &header)
|
||||||
{
|
{
|
||||||
// true to continue; false to break (for_each protocol)
|
// 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;
|
string_view ret;
|
||||||
for_each([&key, &ret](const auto &header)
|
for_each([&key, &ret](const auto &header)
|
||||||
{
|
{
|
||||||
if(header == key)
|
if(iequals(header.first, key))
|
||||||
{
|
{
|
||||||
ret = header.second;
|
ret = header.second;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue