aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/v3/ngx_http_v3_request.c2
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);