Code cleanup
This commit is contained in:
parent
5d535766bf
commit
b2bf18d40f
|
@ -2059,7 +2059,7 @@ static int session_end_request_headers_received(nghttp2_session *session,
|
||||||
stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
|
stream = nghttp2_session_get_stream(session, frame->hd.stream_id);
|
||||||
nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
|
nghttp2_stream_shutdown(stream, NGHTTP2_SHUT_RD);
|
||||||
rv = nghttp2_session_call_on_request_recv(session, frame->hd.stream_id);
|
rv = nghttp2_session_call_on_request_recv(session, frame->hd.stream_id);
|
||||||
if(nghttp2_is_fatal(rv)) {
|
if(rv != 0) {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2102,7 +2102,7 @@ static int session_end_headers_received(nghttp2_session *session,
|
||||||
if(!nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
|
if(!nghttp2_session_is_my_stream_id(session, frame->hd.stream_id)) {
|
||||||
rv = nghttp2_session_call_on_request_recv(session,
|
rv = nghttp2_session_call_on_request_recv(session,
|
||||||
frame->hd.stream_id);
|
frame->hd.stream_id);
|
||||||
if(nghttp2_is_fatal(rv)) {
|
if(rv != 0) {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue