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 4b6c653 commit f99349dCopy full SHA for f99349d
src/node_http2.cc
@@ -1875,8 +1875,9 @@ Http2Stream::Http2Stream(Http2Session* session,
1875
1876
// Limit the number of header pairs
1877
max_header_pairs_ = session->GetMaxHeaderPairs();
1878
- if (max_header_pairs_ == 0)
1879
- max_header_pairs_ = DEFAULT_MAX_HEADER_LIST_PAIRS;
+ if (max_header_pairs_ == 0) {
+ max_header_pairs_ = DEFAULT_MAX_HEADER_LIST_PAIRS;
1880
+ }
1881
current_headers_.reserve(max_header_pairs_);
1882
1883
// Limit the number of header octets
0 commit comments