]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed header block size calculation.
authorValentin Bartenev <vbart@nginx.com>
Mon, 26 Oct 2015 14:43:08 +0000 (17:43 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 26 Oct 2015 14:43:08 +0000 (17:43 +0300)
src/http/v2/ngx_http_v2_filter_module.c

index 17cfcd8cca934b73dd6c37b6000fcb046e9ed1ab..bcffd851c2de70e59949d6c540b5f51022d98d01 100644 (file)
@@ -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)