Mercurial > hg > nginx-quic
comparison src/http/ngx_http_parse.c @ 7881:e5d4f057a6cb quic
HTTP/3: move body parser call out of ngx_http_parse_chunked().
The function ngx_http_parse_chunked() is also called from the proxy module to
parse the upstream response. It should always parse HTTP/1 body in this case.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 14 May 2020 14:49:53 +0300 |
parents | 5649079a41f4 |
children | d6feece1288a |
comparison
equal
deleted
inserted
replaced
7880:c101438c69a4 | 7881:e5d4f057a6cb |
---|---|
2183 sw_trailer_almost_done, | 2183 sw_trailer_almost_done, |
2184 sw_trailer_header, | 2184 sw_trailer_header, |
2185 sw_trailer_header_almost_done | 2185 sw_trailer_header_almost_done |
2186 } state; | 2186 } state; |
2187 | 2187 |
2188 #if (NGX_HTTP_V3) | |
2189 if (r->http_version == NGX_HTTP_VERSION_30) { | |
2190 return ngx_http_v3_parse_request_body(r, b, ctx); | |
2191 } | |
2192 #endif | |
2193 | |
2194 state = ctx->state; | 2188 state = ctx->state; |
2195 | 2189 |
2196 if (state == sw_chunk_data && ctx->size == 0) { | 2190 if (state == sw_chunk_data && ctx->size == 0) { |
2197 state = sw_after_data; | 2191 state = sw_after_data; |
2198 } | 2192 } |