Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 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 bazel/envoy_internal.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def envoy_copts(repository, test = False):
"-Wold-style-cast",
"-Wformat",
"-Wformat-security",
"-Wrange-loop-analysis",
"-Wvla",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ CompressorFilter::chooseEncoding(const Http::ResponseHeaderMap& headers) const {
}

// Find all encodings accepted by the user agent and adjust the list of allowed compressors.
for (const auto token : StringUtil::splitToken(*accept_encoding_, ",", false /* keep_empty */)) {
for (const auto& token : StringUtil::splitToken(*accept_encoding_, ",", false /* keep_empty */)) {
EncPair pair =
std::make_pair(StringUtil::trim(StringUtil::cropRight(token, ";")), static_cast<float>(1));
const auto params = StringUtil::cropLeft(token, ";");
Expand Down