changeset 8329:7bd334b8d91a quic

HTTP/3: fixed reading request body.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 13 Apr 2020 17:54:23 +0300
parents e76be8639621
children 5b7ec588de48
files src/http/v3/ngx_http_v3_request.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_
     }
 
     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) {