Fix bug that PING flags are ignored in nghttp2_submit_ping

This commit is contained in:
Tatsuhiro Tsujikawa 2016-05-05 23:11:10 +09:00
parent 752b5b3d44
commit 5d4f3f36e3
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ int32_t nghttp2_submit_headers(nghttp2_session *session, uint8_t flags,
int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags,
const uint8_t *opaque_data) {
flags &= NGHTTP2_FLAG_ACK;
return nghttp2_session_add_ping(session, NGHTTP2_FLAG_NONE, opaque_data);
return nghttp2_session_add_ping(session, flags, opaque_data);
}
int nghttp2_submit_priority(nghttp2_session *session, uint8_t flags _U_,