mirror of
https://github.com/nginx/nginx.git
synced 2025-07-20 11:16:38 +08:00
Update ngx_http_v3_parse.c
This commit is contained in:
parent
c52c5698cd
commit
838b8537b6
@ -646,16 +646,17 @@ ngx_http_v3_parse_literal(ngx_connection_t *c, ngx_http_v3_parse_literal_t *st,
|
|||||||
ch = *b->pos++;
|
ch = *b->pos++;
|
||||||
|
|
||||||
if (st->huffman) {
|
if (st->huffman) {
|
||||||
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
|
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
|
||||||
st->length == 1, c->log)
|
st->length == 1, c->log)
|
||||||
!= NGX_OK)
|
!= NGX_OK)
|
||||||
{
|
{
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"client sent invalid encoded field line");
|
"client sent invalid encoded field line");
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
} else {
|
|
||||||
*st->last++ = ch;
|
*st->last++ = ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user