Update doc
This commit is contained in:
parent
ef6ccc0d74
commit
407027452c
|
@ -2149,9 +2149,9 @@ int nghttp2_session_on_push_promise_received(nghttp2_session *session,
|
||||||
}
|
}
|
||||||
if(!nghttp2_session_is_new_peer_stream_id
|
if(!nghttp2_session_is_new_peer_stream_id
|
||||||
(session, frame->push_promise.promised_stream_id)) {
|
(session, frame->push_promise.promised_stream_id)) {
|
||||||
/* The spec says if an endpoint receives a HEADERS with invalid
|
/* The spec says if an endpoint receives a PUSH_PROMISE with
|
||||||
stream ID, it MUST issue connection error with error code
|
illegal stream ID is subject to a connection error of type
|
||||||
PROTOCOL_ERROR. It applies to PUSH_PROMISE too. */
|
PROTOCOL_ERROR. */
|
||||||
return nghttp2_session_handle_invalid_connection
|
return nghttp2_session_handle_invalid_connection
|
||||||
(session, frame, NGHTTP2_PROTOCOL_ERROR);
|
(session, frame, NGHTTP2_PROTOCOL_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue