commit | 4877551adeb2fe43211b136c3033a33bd2586a90 | [log] [tgz] |
---|---|---|
author | Piotr Sikora <piotrsikora@google.com> | Wed Mar 15 14:43:45 2017 -0700 |
committer | Piotr Sikora <piotrsikora@google.com> | Sun Mar 26 08:55:45 2017 +0000 |
tree | 7a70bf9836ea8d6a92cc149bae01e0c7093a2d20 | |
parent | 4d1fcf13a272e3670a0bda46ff25748e8f82c2ef [diff] |
HTTP/2: fix $body_bytes_sent variable. Previously, its value included payloads and frame headers of HEADERS and CONTINUATION frames. Change-Id: I1b7dc3fc6658f07284d14f18dcad7f193867fd95 Signed-off-by: Piotr Sikora <piotrsikora@google.com> Reviewed-on: https://nginx-review.googlesource.com/2821 Reviewed-by: Lizan Zhou <zlizan@google.com>
diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c index 0e85d05..29b07b6 100644 --- a/src/http/v2/ngx_http_v2_filter_module.c +++ b/src/http/v2/ngx_http_v2_filter_module.c
@@ -1388,6 +1388,9 @@ "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);