Return type of nghttp2_submit_trailer is int

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-29 00:06:20 +09:00
parent 55075516c9
commit ad5d73738c
1 changed files with 5 additions and 4 deletions

View File

@ -156,10 +156,11 @@ static int32_t submit_headers_shared_nva(nghttp2_session *session,
attach_stream);
}
int32_t nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id,
const nghttp2_nv *nva, size_t nvlen) {
return submit_headers_shared_nva(session, NGHTTP2_FLAG_END_STREAM, stream_id,
NULL, nva, nvlen, NULL, NULL, 0);
int nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id,
const nghttp2_nv *nva, size_t nvlen) {
return (int)submit_headers_shared_nva(session, NGHTTP2_FLAG_END_STREAM,
stream_id, NULL, nva, nvlen, NULL, NULL,
0);
}
int32_t nghttp2_submit_headers(nghttp2_session *session, uint8_t flags,