From b77fd3dc58b8398bf85d7c11901f5497f1abdf9e Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Mon, 13 Apr 2020 17:54:23 +0300 Subject: [PATCH] HTTP/3: fixed reading request body. --- src/http/v3/ngx_http_v3_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 911dbab36..e0ee0c882 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -265,7 +265,8 @@ ngx_http_v3_parse_request_body(ngx_http_request_t *r, ngx_buf_t *b, } if (ctx->size) { - return NGX_OK; + ctx->length = ctx->size + 1; + return (b->pos == b->last) ? NGX_AGAIN : NGX_OK; } while (b->pos < b->last) {