mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 09:34:16 +00:00
use array/string_view for exluded HTTP headers in server tunnel
This commit is contained in:
@@ -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"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user