Skip to content

Commit

Permalink
src: fix if indent in node_http2.cc
Browse files Browse the repository at this point in the history
PR-URL: #26396
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Masashi Hirano <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
gengjiawen authored and BridgeAR committed Mar 12, 2019
1 parent 4b6c653 commit f99349d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f99349d

Please sign in to comment.