From 4d3a9cc11fb883a7fa8b4f1859047acc121741d3 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Wed, 12 Jul 2023 15:27:35 +0400 Subject: [PATCH] HTTP/3: fixed $body_bytes_sent. --- src/http/v3/ngx_http_v3_filter_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c index 7addf275d..4d2276dc0 100644 --- a/src/http/v3/ngx_http_v3_filter_module.c +++ b/src/http/v3/ngx_http_v3_filter_module.c @@ -581,6 +581,7 @@ ngx_http_v3_header_filter(ngx_http_request_t *r) for (cl = out; cl; cl = cl->next) { h3c->total_bytes += cl->buf->last - cl->buf->pos; + r->header_size += cl->buf->last - cl->buf->pos; } return ngx_http_write_filter(r, out);