From: Valentin Bartenev Date: Mon, 19 Oct 2015 13:16:47 +0000 (+0300) Subject: HTTP/2: fixed parsing of literal header fields without indexing. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=7d2af13f3a51e5932e850db751171bd4fb6a93c6;p=nginx.git HTTP/2: fixed parsing of literal header fields without indexing. --- diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c index 9c6aeb7be..54458daeb 100644 --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -1233,7 +1233,7 @@ ngx_http_v2_state_header_block(ngx_http_v2_connection_t *h2c, u_char *pos, } else { /* literal header field without indexing */ - prefix = ngx_http_v2_prefix(3); + prefix = ngx_http_v2_prefix(4); } value = ngx_http_v2_parse_int(h2c, &pos, end, prefix);