# HG changeset patch # User Roman Arutyunyan # Date 1641977679 -10800 # Node ID 9aff230f10d13ac21fbab2b099b3b1069e128a77 # Parent 10522e8dea412f071ccde7650dd481081f446bc2 QUIC: modified HTTP version test. The new condition produces smaller diff to the default branch and is similar to HTTP/2 case. diff -r 10522e8dea41 -r 9aff230f10d1 src/http/ngx_http_request_body.c --- a/src/http/ngx_http_request_body.c Thu Dec 30 12:59:32 2021 +0300 +++ b/src/http/ngx_http_request_body.c Wed Jan 12 11:54:39 2022 +0300 @@ -942,7 +942,14 @@ if (r->expect_tested || r->headers_in.expect == NULL - || r->http_version != NGX_HTTP_VERSION_11) + || r->http_version < NGX_HTTP_VERSION_11 +#if (NGX_HTTP_V2) + || r->stream != NULL +#endif +#if (NGX_HTTP_V3) + || r->connection->quic != NULL +#endif + ) { return NGX_OK; }