mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
src: fix if indent in node_http2.cc
PR-URL: https://github.com/nodejs/node/pull/26396 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
c8e0c09086
commit
4b84152e61
1 file changed
+3
-2
+3
-2
@@ -1875,8 +1875,9 @@ Http2Stream::Http2Stream(Http2Session* session,
|
||||
|
||||
// Limit the number of header pairs
|
||||
max_header_pairs_ = session->GetMaxHeaderPairs();
|
||||
if (max_header_pairs_ == 0)
|
||||
max_header_pairs_ = DEFAULT_MAX_HEADER_LIST_PAIRS;
|
||||
if (max_header_pairs_ == 0) {
|
||||
max_header_pairs_ = DEFAULT_MAX_HEADER_LIST_PAIRS;
|
||||
}
|
||||
current_headers_.reserve(max_header_pairs_);
|
||||
|
||||
// Limit the number of header octets
|
||||
|
||||
Reference in new issue
Block a user