[nginx] HTTP/2: fixed HPACK header field parsing.

Valentin Bartenev vbart at nginx.com
Mon Sep 21 22:41:49 UTC 2015


details:   http://hg.nginx.org/nginx/rev/f5380c244cd7
branches:  
changeset: 6248:f5380c244cd7
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue Sep 22 01:40:04 2015 +0300
description:
HTTP/2: fixed HPACK header field parsing.

diffstat:

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

diffs (15 lines):

diff -r fbbb1c1ce1eb -r f5380c244cd7 src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c	Mon Sep 21 23:08:34 2015 +0300
+++ b/src/http/v2/ngx_http_v2.c	Tue Sep 22 01:40:04 2015 +0300
@@ -1451,6 +1451,11 @@ ngx_http_v2_state_field_skip(ngx_http_v2
 
     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);
 }
 



More information about the nginx-devel mailing list