Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
7976:76aea0ad78e5 | 7977:336084ff943b |
---|---|
1598 } | 1598 } |
1599 | 1599 |
1600 h2c->state.length -= size; | 1600 h2c->state.length -= size; |
1601 h2c->state.field_rest -= size; | 1601 h2c->state.field_rest -= size; |
1602 | 1602 |
1603 if (ngx_http_v2_huff_decode(&h2c->state.field_state, pos, size, | 1603 if (ngx_http_huff_decode(&h2c->state.field_state, pos, size, |
1604 &h2c->state.field_end, | 1604 &h2c->state.field_end, |
1605 h2c->state.field_rest == 0, | 1605 h2c->state.field_rest == 0, |
1606 h2c->connection->log) | 1606 h2c->connection->log) |
1607 != NGX_OK) | 1607 != NGX_OK) |
1608 { | 1608 { |
1609 ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0, | 1609 ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0, |
1610 "client sent invalid encoded header field"); | 1610 "client sent invalid encoded header field"); |
1611 | 1611 |