]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: removed HTTP/3 parser call from discard body filter.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 16 Sep 2020 18:48:33 +0000 (19:48 +0100)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 16 Sep 2020 18:48:33 +0000 (19:48 +0100)
Request body discard is disabled for QUIC streams anyway.

src/http/ngx_http_request_body.c

index a6dbcf502f7074ed56c022b1aa621b22743372df..760a3cd05bb020e4b5d4f5849fd81b869e59e4e7 100644 (file)
@@ -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) {