mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
HTTP/2: fixed header block size calculation.
This commit is contained in:
parent
f93aa4d953
commit
70c29f05f0
@ -222,7 +222,7 @@ ngx_http_v2_header_filter(ngx_http_request_t *r)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (r->headers_out.content_type.len) {
|
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
|
if (r->headers_out.content_type_len == r->headers_out.content_type.len
|
||||||
&& r->headers_out.charset.len)
|
&& r->headers_out.charset.len)
|
||||||
|
Loading…
Reference in New Issue
Block a user