From f99349d41675a5b4faa1d12cc8a8458226448bf0 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 2 Mar 2019 21:39:52 +0800 Subject: [PATCH] src: fix if indent in node_http2.cc PR-URL: https://github.com/nodejs/node/pull/26396 Reviewed-By: Richard Lau Reviewed-By: Masashi Hirano Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- src/node_http2.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node_http2.cc b/src/node_http2.cc index 297699dde694ad..da37b1d5256329 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -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