]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: fixed reading request body.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 13 Apr 2020 14:54:23 +0000 (17:54 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 13 Apr 2020 14:54:23 +0000 (17:54 +0300)
src/http/v3/ngx_http_v3_request.c

index 911dbab364e2b3f160c74b939a2a4d621182d2f3..e0ee0c882a253c90119a2abae464691bb23d32ce 100644 (file)
@@ -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) {