Skip to content

Commit

Permalink
move check
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa committed Aug 23, 2019
1 parent ba49c29 commit 3aa1c0e
Showing 1 changed file with 1 addition 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 @@ -93,7 +93,6 @@ void HeaderString::freeDynamic() {
bool HeaderString::valid() const { return validHeaderString(getStringView()); }

void HeaderString::append(const char* data, uint32_t size) {
ASSERT(validHeaderString(absl::string_view(data, size)));
switch (type_) {
case Type::Reference: {
// Rather than be too clever and optimize this uncommon case, we dynamically
Expand Down Expand Up @@ -146,7 +145,7 @@ 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;
}
Expand Down

0 comments on commit 3aa1c0e

Please sign in to comment.