From cbc02bbc4c6ce02d912939928eef0e14a4bbc3a4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 6 Jan 2015 00:51:52 +0900 Subject: [PATCH] nghttpx: Code cleanup --- src/shrpx_http2_session.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shrpx_http2_session.cc b/src/shrpx_http2_session.cc index 0c77b860..11875d71 100644 --- a/src/shrpx_http2_session.cc +++ b/src/shrpx_http2_session.cc @@ -939,9 +939,7 @@ int on_frame_recv_callback(nghttp2_session *session, const nghttp2_frame *frame, if (rv != 0) { return 0; } - } - - if (frame->headers.cat == NGHTTP2_HCAT_HEADERS) { + } else if (frame->headers.cat == NGHTTP2_HCAT_HEADERS) { if (downstream->get_expect_final_response()) { rv = on_response_headers(http2session, downstream, session, frame);