aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-09-22 01:40:04 +0300
committerValentin Bartenev <vbart@nginx.com>2015-09-22 01:40:04 +0300
commita27d0bd00dbe8bce8af09a0e5db88135f1c975f8 (patch)
tree82677f20c29134ff07bb0c7909dfefb665a7f470
parentf64ff2445157e3a537e43f22c76daa7269c361a8 (diff)
downloadnginx-a27d0bd00dbe8bce8af09a0e5db88135f1c975f8.tar.gz
nginx-a27d0bd00dbe8bce8af09a0e5db88135f1c975f8.zip
HTTP/2: fixed HPACK header field parsing.
-rw-r--r--src/http/v2/ngx_http_v2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index b8c48705a..0da865f2c 100644
--- 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_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);
}