nghttpx: Code cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-06 00:51:52 +09:00
parent b5796c6b96
commit cbc02bbc4c
1 changed files with 1 additions and 3 deletions

View File

@ -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);