mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 10:12:25 +00:00
case-insensistive check for gzip and x-i2p-gzip
This commit is contained in:
1 parent
628f5d38a6
commit
822e4ed718
2 files changed
+4
-4
No files matched your search
@@ -1102,8 +1102,8 @@ namespace client
|
||||
if (!lastModified.empty ()) m_LastModified = std::string (lastModified);
|
||||
// parse response
|
||||
LogPrint (eLogInfo, "Addressbook: Got update from ", dest_host);
|
||||
if (res[boost::beast::http::field::content_encoding] == "gzip" ||
|
||||
res[boost::beast::http::field::content_encoding] =="x-i2p-gzip")
|
||||
if (boost::iequals (res[boost::beast::http::field::content_encoding], "gzip") ||
|
||||
boost::iequals (res[boost::beast::http::field::content_encoding], "x-i2p-gzip"))
|
||||
{
|
||||
std::stringstream unzipped;
|
||||
i2p::data::GzipInflator inflator;
|
||||
|
||||
Reference in new issue
Block a user