Skip to content

Commit c3d4d1b

Browse files
committed
use array/string_view for exluded HTTP headers in server tunnel
1 parent ad7ca42 commit c3d4d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libi2pd_client/I2PTunnel.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ namespace client
391391
else
392392
{
393393
// strip up some headers
394-
static const std::vector<std::string> excluded // list of excluded headers
394+
static const std::array<std::string_view, 2> excluded // list of excluded headers
395395
{
396396
"Keep-Alive:", "X-I2P"
397397
};
@@ -474,7 +474,7 @@ namespace client
474474
if (line == "\r") endOfHeader = true;
475475
else
476476
{
477-
static const std::vector<std::string> excluded // list of excluded headers
477+
static const std::array<std::string_view, 5> excluded // list of excluded headers
478478
{
479479
"Server:", "Date:", "X-Runtime:", "X-Powered-By:", "Proxy"
480480
};

0 commit comments

Comments
 (0)