]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed parsing of literal header fields without indexing.
authorValentin Bartenev <vbart@nginx.com>
Mon, 19 Oct 2015 13:16:47 +0000 (16:16 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 19 Oct 2015 13:16:47 +0000 (16:16 +0300)
src/http/v2/ngx_http_v2.c

index 9c6aeb7bec27764adb5c682ae77a6816115e61b1..54458daeb449fa1211c9c9c50d9cec5c4669f15a 100644 (file)
@@ -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);