summaryrefslogtreecommitdiff
path: root/src/node_http2.cc
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-03-02 21:39:52 +0800
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-05 01:57:22 +0100
commit4b84152e61b2ef8355c440f60350c2033bb23117 (patch)
tree0411df4b032906810eb08bd66151bd42a47e4b01 /src/node_http2.cc
parentc8e0c09086184ddf6ade60865f729d5d4c2f577c (diff)
downloadandroid-node-v8-4b84152e61b2ef8355c440f60350c2033bb23117.tar.gz
android-node-v8-4b84152e61b2ef8355c440f60350c2033bb23117.tar.bz2
android-node-v8-4b84152e61b2ef8355c440f60350c2033bb23117.zip
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>
Diffstat (limited to 'src/node_http2.cc')
-rw-r--r--src/node_http2.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 8946c71fc3..52566186cf 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