aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-05-14 14:49:53 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-05-14 14:49:53 +0300
commitd69f678e9c788e2c2424eb6dc2fbacf8366213f6 (patch)
tree5cfae70c92cf203dd8c0bbff5655f445aa22e364 /src/http/ngx_http_parse.c
parent1c54340e0aa65781f6cd4cc643f704826c47459a (diff)
downloadnginx-d69f678e9c788e2c2424eb6dc2fbacf8366213f6.tar.gz
nginx-d69f678e9c788e2c2424eb6dc2fbacf8366213f6.zip
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.
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r--src/http/ngx_http_parse.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 92bcf12ad..f66593443 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -2185,12 +2185,6 @@ ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b,
sw_trailer_header_almost_done
} state;
-#if (NGX_HTTP_V3)
- if (r->http_version == NGX_HTTP_VERSION_30) {
- return ngx_http_v3_parse_request_body(r, b, ctx);
- }
-#endif
-
state = ctx->state;
if (state == sw_chunk_data && ctx->size == 0) {