diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-09-16 19:48:33 +0100 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-09-16 19:48:33 +0100 |
commit | ebbcc329cb5f9878d2eb27f53e74e951bdaa449d (patch) | |
tree | 5b29f2f83c5a5cb24e77691a08988a2fc49944ff | |
parent | 9fff3b7516936ef663926f33c30b15b08ecfd7ae (diff) | |
download | nginx-ebbcc329cb5f9878d2eb27f53e74e951bdaa449d.tar.gz nginx-ebbcc329cb5f9878d2eb27f53e74e951bdaa449d.zip |
HTTP/3: removed HTTP/3 parser call from discard body filter.
Request body discard is disabled for QUIC streams anyway.
-rw-r--r-- | src/http/ngx_http_request_body.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index a6dbcf502..760a3cd05 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -804,16 +804,7 @@ ngx_http_discard_request_body_filter(ngx_http_request_t *r, ngx_buf_t *b) for ( ;; ) { - switch (r->http_version) { -#if (NGX_HTTP_V3) - case NGX_HTTP_VERSION_30: - rc = ngx_http_v3_parse_request_body(r, b, rb->chunked); - break; -#endif - - default: /* HTTP/1.x */ - rc = ngx_http_parse_chunked(r, b, rb->chunked); - } + rc = ngx_http_parse_chunked(r, b, rb->chunked); if (rc == NGX_OK) { |