# HG changeset patch # User Valentin Bartenev # Date 1442875204 -10800 # Node ID f5380c244cd7db3767e8b5f8f04a6c2872311e2c # Parent fbbb1c1ce1ebe7f748df53817afb06cc289c8ba5 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 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -1451,6 +1451,11 @@ ngx_http_v2_state_field_skip(ngx_http_v2 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); }