Bitwise-OR last CONTINUATION flags to first HEADERS flags

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-11 17:30:38 +09:00
parent c280cc7c4d
commit 16b5e99e88
1 changed files with 3 additions and 0 deletions

View File

@ -1516,6 +1516,9 @@ static int nghttp2_session_after_frame_sent(nghttp2_session *session)
session->aob.framebuflen = session->aob.framebufmark = session->aob.framebuflen = session->aob.framebufmark =
session->aob.framebufoff + NGHTTP2_FRAME_HEAD_LENGTH + session->aob.framebufoff + NGHTTP2_FRAME_HEAD_LENGTH +
cont_hd.length; cont_hd.length;
/* Or-ing flags so that we can show these flags in
callback */
frame->hd.flags |= cont_hd.flags;
} else { } else {
cont_hd.flags = NGHTTP2_FLAG_NONE; cont_hd.flags = NGHTTP2_FLAG_NONE;
session->aob.framebufmark += cont_hd.length; session->aob.framebufmark += cont_hd.length;