diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-04-13 17:54:23 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-04-13 17:54:23 +0300 |
commit | b77fd3dc58b8398bf85d7c11901f5497f1abdf9e (patch) | |
tree | fc9000f33ab0e0bef37b383a4883845a6a8b7974 /src/http/v3/ngx_http_v3_request.c | |
parent | c64a3939e4225060ef9768d637de7e2e7726d328 (diff) | |
download | nginx-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.c | 3 |
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) { |