From 16b5e99e8832c26a8378e5945c13ae9bf62a6cea Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 11 Feb 2014 17:30:38 +0900 Subject: [PATCH] Bitwise-OR last CONTINUATION flags to first HEADERS flags --- lib/nghttp2_session.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 672813bd..2ed79c05 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -1516,6 +1516,9 @@ static int nghttp2_session_after_frame_sent(nghttp2_session *session) session->aob.framebuflen = session->aob.framebufmark = session->aob.framebufoff + NGHTTP2_FRAME_HEAD_LENGTH + cont_hd.length; + /* Or-ing flags so that we can show these flags in + callback */ + frame->hd.flags |= cont_hd.flags; } else { cont_hd.flags = NGHTTP2_FLAG_NONE; session->aob.framebufmark += cont_hd.length;