mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
case-insensitive http responses
This commit is contained in:
parent
f1d4818045
commit
c5b6da7201
3 changed files with 12 additions and 10 deletions
1
util.cpp
1
util.cpp
|
@ -212,6 +212,7 @@ namespace http
|
|||
if (colon != std::string::npos)
|
||||
{
|
||||
std::string field = header.substr (0, colon);
|
||||
boost::to_lower (field);
|
||||
if (field == i2p::util::http::TRANSFER_ENCODING)
|
||||
isChunked = (header.find ("chunked", colon + 1) != std::string::npos);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue