Skip to content

Commit

Permalink
Merge pull request #10 from envoyproxy/master
Browse files Browse the repository at this point in the history
[headermap] speedup for appending data (envoyproxy#8029)
  • Loading branch information
sthagen authored Aug 25, 2019
2 parents 4aec4bd + 6ff0bce commit 7349490
Show file tree
Hide file tree
Showing 2 changed files with 5,378 additions and 2 deletions.
3 changes: 1 addition & 2 deletions source/common/http/header_map_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ void HeaderString::append(const char* data, uint32_t size) {
}
}
}

ASSERT(validHeaderString(absl::string_view(data, size)));
memcpy(buffer_.dynamic_ + string_length_, data, size);
string_length_ += size;
ASSERT(valid());
}

void HeaderString::clear() {
Expand Down
Loading

0 comments on commit 7349490

Please sign in to comment.