diff options
| author | Piotr Sikora <piotrsikora@google.com> | 2017-03-26 01:25:02 -0700 |
|---|---|---|
| committer | Piotr Sikora <piotrsikora@google.com> | 2017-03-26 01:25:02 -0700 |
| commit | 1506e438cb6ea5b2a339a9d0f135eb8640549399 (patch) | |
| tree | d29dea29d5a46f9d7cc5b125517e315f01e3a22a | |
| parent | 1f76260583559bd638f13b8415bf99aa1c4e2d65 (diff) | |
| download | nginx-1506e438cb6ea5b2a339a9d0f135eb8640549399.tar.gz nginx-1506e438cb6ea5b2a339a9d0f135eb8640549399.tar.bz2 | |
HTTP/2: fix $bytes_sent variable.
Previously, its value accounted for payloads of HEADERS, CONTINUATION
and DATA frames, as well as frame headers of HEADERS and DATA frames,
but it didn't account for frame headers of CONTINUATION frames.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
| -rw-r--r-- | src/http/v2/ngx_http_v2_filter_module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c index 42fa0c50c..8080e831a 100644 --- a/src/http/v2/ngx_http_v2_filter_module.c +++ b/src/http/v2/ngx_http_v2_filter_module.c @@ -769,6 +769,8 @@ ngx_http_v2_create_headers_frame(ngx_http_request_t *r, u_char *pos, rest -= frame_size; if (rest) { + frame->length += NGX_HTTP_V2_FRAME_HEADER_SIZE; + type = NGX_HTTP_V2_CONTINUATION_FRAME; flags = NGX_HTTP_V2_NO_FLAG; continue; |
