Skip to content

Commit

Permalink
comment about \0
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Zhang <danzh@google.com>
  • Loading branch information
danzh1989 committed Mar 23, 2021
1 parent 3c02978 commit c31225b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/extensions/quic_listeners/quiche/envoy_quic_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ std::unique_ptr<T> spdyHeaderBlockToEnvoyHeaders(const spdy::SpdyHeaderBlock& he
for (auto entry : header_block) {
// TODO(danzh): Avoid temporary strings and addCopy() with string_view.
std::string key(entry.first);
// QUICHE coalesces mulitple trailer values with the same key with '\0'.
std::vector<absl::string_view> values = absl::StrSplit(entry.second, '\0');
for (const absl::string_view& value : values) {
headers->addCopy(Http::LowerCaseString(key), value);
Expand Down

0 comments on commit c31225b

Please sign in to comment.