mirror of
https://github.com/nginx/nginx.git
synced 2025-07-20 19:27:29 +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++;
|
||||
|
||||
if (st->huffman) {
|
||||
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
|
||||
st->length == 1, c->log)
|
||||
!= NGX_OK)
|
||||
{
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||
"client sent invalid encoded field line");
|
||||
return NGX_ERROR;
|
||||
}
|
||||
if (ngx_http_huff_decode(&st->huffstate, &ch, 1, &st->last,
|
||||
st->length == 1, c->log)
|
||||
!= NGX_OK)
|
||||
{
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||
"client sent invalid encoded field line");
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
} else {
|
||||
*st->last++ = ch;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user