Don't ignore aux_data for HEADERS with NGHTTP2_HCAT_HEADERS tag

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-23 20:44:20 +09:00
parent e147c14186
commit 78df530b90
1 changed files with 2 additions and 9 deletions

View File

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