changeset 6248:f5380c244cd7

HTTP/2: fixed HPACK header field parsing.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 22 Sep 2015 01:40:04 +0300
parents fbbb1c1ce1eb
children 081a073e5164
files src/http/v2/ngx_http_v2.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }