mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
* i2p::util::http::GetHttpContent() : use std::transform instead boost
This commit is contained in:
parent
d312d753e9
commit
33a33e3c71
2
util.cpp
2
util.cpp
@ -81,7 +81,7 @@ namespace http
|
|||||||
if (colon != std::string::npos)
|
if (colon != std::string::npos)
|
||||||
{
|
{
|
||||||
std::string field = header.substr (0, colon);
|
std::string field = header.substr (0, colon);
|
||||||
boost::to_lower (field);
|
std::transform(field.begin(), field.end(), field.begin(), ::tolower);
|
||||||
if (field == i2p::util::http::TRANSFER_ENCODING)
|
if (field == i2p::util::http::TRANSFER_ENCODING)
|
||||||
isChunked = (header.find ("chunked", colon + 1) != std::string::npos);
|
isChunked = (header.find ("chunked", colon + 1) != std::string::npos);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user