From 5d4f3f36e36718309f357140f8208b25a13eedba Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 5 May 2016 23:11:10 +0900 Subject: [PATCH] Fix bug that PING flags are ignored in nghttp2_submit_ping --- lib/nghttp2_submit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_submit.c b/lib/nghttp2_submit.c index 6329334c..18149d2d 100644 --- a/lib/nghttp2_submit.c +++ b/lib/nghttp2_submit.c @@ -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_,