mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 13:11:40 +00:00
use array/string_view for exluded HTTP headers in server tunnel
This commit is contained in:
1 parent
ad7ca428ae
commit
c3d4d1bdf4
1 file changed
+2
-2
@@ -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