Return type of nghttp2_submit_trailer is int
This commit is contained in:
parent
55075516c9
commit
ad5d73738c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue