# HG changeset patch # User Valentin Bartenev # Date 1445870588 -10800 # Node ID b2de4a56b86076dbc8aa01236f38c7fa51f26bde # Parent 60f916da7294ddc522237978882f6e3a8db75ea8 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 --- 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_reque } 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)