We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b08d1 commit e418b4fCopy full SHA for e418b4f
src/node_http2.cc
@@ -1881,8 +1881,9 @@ Http2Stream::Http2Stream(
1881
1882
// Limit the number of header pairs
1883
max_header_pairs_ = session->GetMaxHeaderPairs();
1884
- if (max_header_pairs_ == 0)
1885
- max_header_pairs_ = DEFAULT_MAX_HEADER_LIST_PAIRS;
+ if (max_header_pairs_ == 0) {
+ max_header_pairs_ = DEFAULT_MAX_HEADER_LIST_PAIRS;
1886
+ }
1887
current_headers_.reserve(max_header_pairs_);
1888
1889
// Limit the number of header octets
0 commit comments