mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
removed all Accept-* headers but Accept-Encoding
This commit is contained in:
parent
0ec9defc6e
commit
d47d8d22a3
3 changed files with 13 additions and 9 deletions
|
@ -293,11 +293,11 @@ namespace http {
|
|||
}
|
||||
}
|
||||
|
||||
void HTTPReq::RemoveHeader (const std::string& name)
|
||||
void HTTPReq::RemoveHeader (const std::string& name, const std::string& exempt)
|
||||
{
|
||||
for (auto it = headers.begin (); it != headers.end ();)
|
||||
{
|
||||
if (!it->first.compare(0, name.length (), name))
|
||||
if (!it->first.compare(0, name.length (), name) && it->first != exempt)
|
||||
it = headers.erase (it);
|
||||
else
|
||||
it++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue