comparison src/http/v3/ngx_http_v3_request.c @ 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 5649079a41f4
children df18ae7161b8
comparison
equal deleted inserted replaced
8328:e76be8639621 8329:7bd334b8d91a
263 263
264 r->h3_parse = st; 264 r->h3_parse = st;
265 } 265 }
266 266
267 if (ctx->size) { 267 if (ctx->size) {
268 return NGX_OK; 268 ctx->length = ctx->size + 1;
269 return (b->pos == b->last) ? NGX_AGAIN : NGX_OK;
269 } 270 }
270 271
271 while (b->pos < b->last) { 272 while (b->pos < b->last) {
272 rc = ngx_http_v3_parse_data(c, st, *b->pos++); 273 rc = ngx_http_v3_parse_data(c, st, *b->pos++);
273 274