changeset 9133:f91dc350be9f

HTTP/3: fixed $body_bytes_sent.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 12 Jul 2023 15:27:35 +0400
parents 77c1418916f7
children c209dc4eed17
files src/http/v3/ngx_http_v3_filter_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_reque
 
     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);