summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-10-26 17:43:08 +0300
committerValentin Bartenev <vbart@nginx.com>2015-10-26 17:43:08 +0300
commit70c29f05f02136452b0639ac4786fd01437ff5e1 (patch)
treec112b790f896e7d5d934a1b688e45fa07e99d608 /src
parentf93aa4d953d2ec0c3c6f5f56f41ed0b14a8c1c33 (diff)
downloadnginx-70c29f05f02136452b0639ac4786fd01437ff5e1.tar.gz
nginx-70c29f05f02136452b0639ac4786fd01437ff5e1.tar.bz2
HTTP/2: fixed header block size calculation.
Diffstat (limited to 'src')
-rw-r--r--src/http/v2/ngx_http_v2_filter_module.c2
1 files changed, 1 insertions, 1 deletions
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)