From: Roman Arutyunyan Date: Mon, 13 Apr 2020 14:54:23 +0000 (+0300) Subject: HTTP/3: fixed reading request body. X-Git-Tag: release-1.25.0~4^2~780 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=b77fd3dc58b8398bf85d7c11901f5497f1abdf9e;p=nginx.git HTTP/3: fixed reading request body. --- 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) {