Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/common/http/http1/settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Http1Settings parseHttp1Settings(const envoy::config::core::v3::Http1ProtocolOpt

if (!config.ignore_http_11_upgrade().empty()) {
std::vector<Matchers::StringMatcherPtr> matchers;
matchers.reserve(config.ignore_http_11_upgrade_size());
for (const auto& matcher : config.ignore_http_11_upgrade()) {
matchers.emplace_back(std::make_unique<Envoy::Matchers::StringMatcherImpl>(matcher, context));
}
Expand Down
2 changes: 1 addition & 1 deletion source/common/http/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ void Utility::removeUpgrade(RequestOrResponseHeaderMap& headers,
}

void Utility::removeConnectionUpgrade(RequestOrResponseHeaderMap& headers,
StringUtil::CaseUnorderedSet tokens_to_remove) {
const StringUtil::CaseUnorderedSet& tokens_to_remove) {
if (headers.Connection()) {
const std::string new_value =
StringUtil::removeTokens(headers.getConnectionValue(), ",", tokens_to_remove, ",");
Expand Down
2 changes: 1 addition & 1 deletion source/common/http/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void removeUpgrade(RequestOrResponseHeaderMap& headers,
* set of values. Removes the `Connection` header if it only contains `tokens_to_remove`.
*/
void removeConnectionUpgrade(RequestOrResponseHeaderMap& headers,
StringUtil::CaseUnorderedSet tokens_to_remove);
const StringUtil::CaseUnorderedSet& tokens_to_remove);

struct EncodeFunctions {
// Function to modify locally generated response headers.
Expand Down
Loading