use array/string_view for exluded HTTP headers in server tunnel

This commit is contained in:
orignal 2025-03-14 13:07:45 -04:00
parent ad7ca428ae
commit c3d4d1bdf4

View file

@ -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"
};