From: Valentin Bartenev Date: Mon, 26 Oct 2015 14:43:08 +0000 (+0300) Subject: HTTP/2: fixed header block size calculation. X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=70c29f05f02136452b0639ac4786fd01437ff5e1;p=nginx.git HTTP/2: fixed header block size calculation. --- diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c index 17cfcd8cc..bcffd851c 100644 --- a/src/http/v2/ngx_http_v2_filter_module.c +++ b/src/http/v2/ngx_http_v2_filter_module.c @@ -222,7 +222,7 @@ ngx_http_v2_header_filter(ngx_http_request_t *r) } if (r->headers_out.content_type.len) { - len += NGX_HTTP_V2_INT_OCTETS + r->headers_out.content_type.len; + len += 1 + NGX_HTTP_V2_INT_OCTETS + r->headers_out.content_type.len; if (r->headers_out.content_type_len == r->headers_out.content_type.len && r->headers_out.charset.len)