mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 13:49:05 +08:00
HTTP/2: fix $body_bytes_sent variable.
Previously, its value included payloads and frame headers of HEADERS and CONTINUATION frames. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
1506e438cb
commit
d2008dbc7d
@ -1211,6 +1211,9 @@ ngx_http_v2_headers_frame_handler(ngx_http_v2_connection_t *h2c,
|
||||
"http2:%ui HEADERS frame %p was sent",
|
||||
stream->node->id, frame);
|
||||
|
||||
stream->request->header_size += NGX_HTTP_V2_FRAME_HEADER_SIZE
|
||||
+ frame->length;
|
||||
|
||||
ngx_http_v2_handle_frame(stream, frame);
|
||||
|
||||
ngx_http_v2_handle_stream(h2c, stream);
|
||||
|
Loading…
Reference in New Issue
Block a user