mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 10:32:27 +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
+2
-2
@@ -451,9 +451,9 @@ namespace http
|
||||
for (auto& directive: encodingDirectives)
|
||||
{
|
||||
boost::algorithm::trim (directive);
|
||||
if (directive == "gzip")
|
||||
if (boost::iequals (directive, "gzip"))
|
||||
return true; /* gotcha! */
|
||||
if (includingI2PGzip && directive == "x-i2p-gzip")
|
||||
if (includingI2PGzip && boost::iequals (directive, "x-i2p-gzip"))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user