Fix bug that server treats reception of ENABLE_PUSH=0 as connection error

This commit is contained in:
Tatsuhiro Tsujikawa 2014-05-01 08:38:28 +09:00
parent 660c536275
commit 3c431da6aa
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}