Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_request.c @ 8451:908cae4f3078 quic
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 25 Jun 2020 20:31:13 +0300 |
parents | 5b367070cc9c |
children | a6675a976560 |
comparison
equal
deleted
inserted
replaced
8450:a62849b6463c | 8451:908cae4f3078 |
---|---|
664 } | 664 } |
665 | 665 |
666 hl->buf = b; | 666 hl->buf = b; |
667 hl->next = cl; | 667 hl->next = cl; |
668 | 668 |
669 if (r->headers_out.content_length_n >= 0) { | 669 if (r->headers_out.content_length_n >= 0 && !r->header_only) { |
670 len = 1 + ngx_http_v3_encode_varlen_int(NULL, | 670 len = 1 + ngx_http_v3_encode_varlen_int(NULL, |
671 r->headers_out.content_length_n); | 671 r->headers_out.content_length_n); |
672 | 672 |
673 b = ngx_create_temp_buf(c->pool, len); | 673 b = ngx_create_temp_buf(c->pool, len); |
674 if (b == NULL) { | 674 if (b == NULL) { |