From 78df530b90752a2382bbf3a76e142576406145e8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 23 Jul 2014 20:44:20 +0900 Subject: [PATCH] Don't ignore aux_data for HEADERS with NGHTTP2_HCAT_HEADERS tag --- lib/nghttp2_session.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index b2a00a49..1ddf2f0e 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -2031,6 +2031,8 @@ static int session_after_frame_sent(nghttp2_session *session) /* Fall through */ case NGHTTP2_HCAT_RESPONSE: stream->state = NGHTTP2_STREAM_OPENED; + /* Fall through */ + case NGHTTP2_HCAT_HEADERS: if(frame->hd.flags & NGHTTP2_FLAG_END_STREAM) { nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR); } @@ -2050,15 +2052,6 @@ static int session_after_frame_sent(nghttp2_session *session) DATA frame item. We might have to handle it here. */ } break; - case NGHTTP2_HCAT_HEADERS: - if(frame->hd.flags & NGHTTP2_FLAG_END_STREAM) { - nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_WR); - } - rv = nghttp2_session_close_stream_if_shut_rdwr(session, stream); - if(nghttp2_is_fatal(rv)) { - return rv; - } - break; } break; }