mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-20 08:16:38 +01:00
use array/string_view for exluded HTTP headers in server tunnel
This commit is contained in:
parent
ad7ca428ae
commit
c3d4d1bdf4
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@ namespace client
|
|||
else
|
||||
{
|
||||
// strip up some headers
|
||||
static const std::vector<std::string> excluded // list of excluded headers
|
||||
static const std::array<std::string_view, 2> excluded // list of excluded headers
|
||||
{
|
||||
"Keep-Alive:", "X-I2P"
|
||||
};
|
||||
|
@ -474,7 +474,7 @@ namespace client
|
|||
if (line == "\r") endOfHeader = true;
|
||||
else
|
||||
{
|
||||
static const std::vector<std::string> excluded // list of excluded headers
|
||||
static const std::array<std::string_view, 5> excluded // list of excluded headers
|
||||
{
|
||||
"Server:", "Date:", "X-Runtime:", "X-Powered-By:", "Proxy"
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue