Skip to content

Commit

Permalink
use AppendHeader for http2
Browse files Browse the repository at this point in the history
  • Loading branch information
lhsoft committed Sep 19, 2023
1 parent 5dc6562 commit ab2e67b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/brpc/policy/http2_rpc_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1281,8 +1281,7 @@ int H2StreamContext::ConsumeHeaders(butil::IOBufBytesIterator& it) {
strcmp(name + 1, /*c*/"ontent-type") == 0) {
h.set_content_type(pair.value);
} else {
// TODO: AppendHeader?
h.SetHeader(pair.name, pair.value);
h.AppendHeader(pair.name, pair.value);
}

if (FLAGS_http_verbose) {
Expand Down

0 comments on commit ab2e67b

Please sign in to comment.