ceftests: Fix CookieTest failure with --use-test-http-server (see issue #3348)

This commit is contained in:
Marshall Greenblatt
2022-08-01 21:09:02 -04:00
parent a895274add
commit 0b1c3938c6
4 changed files with 18 additions and 11 deletions

View File

@@ -453,8 +453,7 @@ std::string GetHeaderValue(const CefRequest::HeaderMap& header_map,
const std::string& header_name_lower) {
CefRequest::HeaderMap::const_iterator it = header_map.begin();
for (; it != header_map.end(); ++it) {
std::string name = it->first;
std::transform(name.begin(), name.end(), name.begin(), ::tolower);
std::string name = AsciiStrToLower(it->first);
if (name == header_name_lower)
return it->second;
}