aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-04-13 17:54:23 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-04-13 17:54:23 +0300
commitb77fd3dc58b8398bf85d7c11901f5497f1abdf9e (patch)
treefc9000f33ab0e0bef37b383a4883845a6a8b7974 /src/http/v3/ngx_http_v3_request.c
parentc64a3939e4225060ef9768d637de7e2e7726d328 (diff)
downloadnginx-b77fd3dc58b8398bf85d7c11901f5497f1abdf9e.tar.gz
nginx-b77fd3dc58b8398bf85d7c11901f5497f1abdf9e.zip
HTTP/3: fixed reading request body.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r--src/http/v3/ngx_http_v3_request.c3
1 files changed, 2 insertions, 1 deletions
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) {