[nginx] HTTP/2: fixed parsing of literal header fields without i...

Valentin Bartenev vbart at nginx.com
Mon Oct 19 13:23:53 UTC 2015


details:   http://hg.nginx.org/nginx/rev/0e37389c0bd5
branches:  
changeset: 6260:0e37389c0bd5
user:      Valentin Bartenev <vbart at nginx.com>
date:      Mon Oct 19 16:16:47 2015 +0300
description:
HTTP/2: fixed parsing of literal header fields without indexing.

diffstat:

 src/http/v2/ngx_http_v2.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 2f34ea503ac4 -r 0e37389c0bd5 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c	Wed Oct 07 22:19:42 2015 +0300
+++ b/src/http/v2/ngx_http_v2.c	Mon Oct 19 16:16:47 2015 +0300
@@ -1233,7 +1233,7 @@ ngx_http_v2_state_header_block(ngx_http_
 
     } 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);



More information about the nginx-devel mailing list