]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed HPACK header field parsing.
authorValentin Bartenev <vbart@nginx.com>
Mon, 21 Sep 2015 22:40:04 +0000 (01:40 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 21 Sep 2015 22:40:04 +0000 (01:40 +0300)
src/http/v2/ngx_http_v2.c

index b8c48705a7897184f049a9b37318bd07eef4d988..0da865f2cd8d9caf51bfca88fb4fc00f49ba9f71 100644 (file)
@@ -1451,6 +1451,11 @@ ngx_http_v2_state_field_skip(ngx_http_v2_connection_t *h2c, u_char *pos,
 
     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);
 }