Mercurial > hg > nginx
diff src/http/v2/ngx_http_v2.c @ 7977:336084ff943b
Moved Huffman coding out of HTTP/2.
ngx_http_v2_huff_decode.c and ngx_http_v2_huff_encode.c are renamed
to ngx_http_huff_decode.c and ngx_http_huff_encode.c.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 21 Dec 2021 07:54:16 +0300 |
parents | d9e009b39596 |
children | 72627f1cf09e |
line wrap: on
line diff
--- a/src/http/v2/ngx_http_v2.c Mon Dec 20 20:02:48 2021 +0200 +++ b/src/http/v2/ngx_http_v2.c Tue Dec 21 07:54:16 2021 +0300 @@ -1600,10 +1600,10 @@ h2c->state.length -= size; h2c->state.field_rest -= size; - if (ngx_http_v2_huff_decode(&h2c->state.field_state, pos, size, - &h2c->state.field_end, - h2c->state.field_rest == 0, - h2c->connection->log) + if (ngx_http_huff_decode(&h2c->state.field_state, pos, size, + &h2c->state.field_end, + h2c->state.field_rest == 0, + h2c->connection->log) != NGX_OK) { ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0,