Allow NGHTTP2_FLAG_END_SEGMENT in nghttp2_submit_headers()

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-15 18:55:52 +09:00
parent 53302406d3
commit 66832e9f4e
1 changed files with 3 additions and 2 deletions

View File

@ -75,8 +75,9 @@ static int nghttp2_submit_headers_shared
rv = NGHTTP2_ERR_NOMEM; rv = NGHTTP2_ERR_NOMEM;
goto fail; goto fail;
} }
/* TODO Implement header continuation */ flags_copy =
flags_copy = (flags & (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_PRIORITY)) | (flags & (NGHTTP2_FLAG_END_STREAM | NGHTTP2_FLAG_PRIORITY |
NGHTTP2_FLAG_END_SEGMENT)) |
NGHTTP2_FLAG_END_HEADERS; NGHTTP2_FLAG_END_HEADERS;
nghttp2_frame_headers_init(&frame->headers, flags_copy, stream_id, pri, nghttp2_frame_headers_init(&frame->headers, flags_copy, stream_id, pri,