Skip to content

Commit

Permalink
fix ithewei#243: http2 duplicate host header
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Aug 22, 2022
1 parent 9c6b5b9 commit 41af083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http/Http2Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ int Http2Parser::SubmitRequest(HttpRequest* req) {
name = header.first.c_str();
value = header.second.c_str();
hv_strlower((char*)name);
if (strcmp(name, "host") == 0) {
// :authority
continue;
}
if (strcmp(name, "connection") == 0) {
// HTTP2 default keep-alive
continue;
Expand Down

0 comments on commit 41af083

Please sign in to comment.