mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
HTTP/3: do not emit a DATA frame header for header_only responses.
This resulted in the frame error due to the invalid DATA frame length.
This commit is contained in:
parent
9022fc686d
commit
3168f58306
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ ngx_http_v3_create_header(ngx_http_request_t *r)
|
|||
hl->buf = b;
|
||||
hl->next = cl;
|
||||
|
||||
if (r->headers_out.content_length_n >= 0) {
|
||||
if (r->headers_out.content_length_n >= 0 && !r->header_only) {
|
||||
len = 1 + ngx_http_v3_encode_varlen_int(NULL,
|
||||
r->headers_out.content_length_n);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue