Fix bug that server treats reception of ENABLE_PUSH=0 as connection error
This commit is contained in:
parent
660c536275
commit
3c431da6aa
|
@ -3503,7 +3503,7 @@ int nghttp2_session_on_settings_received(nghttp2_session *session,
|
|||
return nghttp2_session_handle_invalid_connection
|
||||
(session, frame, NGHTTP2_PROTOCOL_ERROR);
|
||||
}
|
||||
if(session->server && entry->value != 0) {
|
||||
if(!session->server && entry->value != 0) {
|
||||
return nghttp2_session_handle_invalid_connection
|
||||
(session, frame, NGHTTP2_PROTOCOL_ERROR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue