Commit 45801883 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Cleanup previous commit

parent 382a328e
......@@ -2997,13 +2997,16 @@ int nghttp2_session_on_request_headers_received(nghttp2_session *session,
/* If client recieves idle stream from server, it is invalid
regardless stream ID is even or odd. This is because client is
not expected to receive request from server. */
if (!session->server &&
session_detect_idle_stream(session, frame->hd.stream_id)) {
if (!session->server) {
if (session_detect_idle_stream(session, frame->hd.stream_id)) {
return session_inflate_handle_invalid_connection(
session, frame, NGHTTP2_PROTOCOL_ERROR,
"request HEADERS: client received request");
}
return NGHTTP2_ERR_IGN_HEADER_BLOCK;
}
if (!session_is_new_peer_stream_id(session, frame->hd.stream_id)) {
/* The spec says if an endpoint receives a HEADERS with invalid
stream ID, it MUST issue connection error with error code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment