From: Roman Arutyunyan Date: Wed, 12 Jan 2022 08:54:39 +0000 (+0300) Subject: QUIC: modified HTTP version test. X-Git-Tag: release-1.25.0~4^2~150 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=109166e4fa41cb35a91107b0be075aec22a567eb;p=nginx.git QUIC: modified HTTP version test. The new condition produces smaller diff to the default branch and is similar to HTTP/2 case. --- diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index d2bec7820..afb042395 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -942,7 +942,14 @@ ngx_http_test_expect(ngx_http_request_t *r) 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; }