HTTP/2: fixed HPACK header field parsing.
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index b8c4870..0da865f 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c
@@ -1451,6 +1451,11 @@ h2c->state.field_rest -= size; + if (h2c->state.field_rest) { + return ngx_http_v2_state_save(h2c, end, end, + ngx_http_v2_state_field_skip); + } + return ngx_http_v2_state_process_header(h2c, pos + size, end); }