Don't ignore aux_data for HEADERS with NGHTTP2_HCAT_HEADERS tag
This commit is contained in:
parent
e147c14186
commit
78df530b90
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue