diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2020-06-25 20:31:13 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-06-25 20:31:13 +0300 |
commit | 3168f58306820428fec2c2871fd03a325aa0c65c (patch) | |
tree | f5d84ca3f2ecdf26885adad4367f153b0888c860 /src | |
parent | 9022fc686d447360c3e01ea0ead47dcb1035ecc9 (diff) | |
download | nginx-3168f58306820428fec2c2871fd03a325aa0c65c.tar.gz nginx-3168f58306820428fec2c2871fd03a325aa0c65c.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/v3/ngx_http_v3_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 7fb297728..d9ea99d2c 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -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); |