comparison src/http/v3/ngx_http_v3_filter_module.c @ 9133:f91dc350be9f

HTTP/3: fixed $body_bytes_sent.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 12 Jul 2023 15:27:35 +0400
parents f742b1b46901
children 23f109f0facc
comparison
equal deleted inserted replaced
9132:77c1418916f7 9133:f91dc350be9f
579 ngx_http_set_ctx(r, ctx, ngx_http_v3_filter_module); 579 ngx_http_set_ctx(r, ctx, ngx_http_v3_filter_module);
580 } 580 }
581 581
582 for (cl = out; cl; cl = cl->next) { 582 for (cl = out; cl; cl = cl->next) {
583 h3c->total_bytes += cl->buf->last - cl->buf->pos; 583 h3c->total_bytes += cl->buf->last - cl->buf->pos;
584 r->header_size += cl->buf->last - cl->buf->pos;
584 } 585 }
585 586
586 return ngx_http_write_filter(r, out); 587 return ngx_http_write_filter(r, out);
587 } 588 }
588 589