mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 10:38:53 +08:00
Add nghttp2_hd_inflate_hd2() and deprecate nghttp2_hd_inflate_hd()
The difference between them are former has const qualifier to the |in| parameter, which is desirable since it is effectively read-only.
This commit is contained in:
@@ -178,8 +178,8 @@ ssize_t inflate_hd(nghttp2_hd_inflater *inflater, nva_out *out,
|
||||
|
||||
for (;;) {
|
||||
inflate_flags = 0;
|
||||
rv = nghttp2_hd_inflate_hd(inflater, &nv, &inflate_flags, bp.pos,
|
||||
nghttp2_buf_len(&bp), final);
|
||||
rv = nghttp2_hd_inflate_hd2(inflater, &nv, &inflate_flags, bp.pos,
|
||||
nghttp2_buf_len(&bp), final);
|
||||
|
||||
if (rv < 0) {
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user