Mercurial > hg > nginx-quic
changeset 8785:9aff230f10d1 quic
QUIC: modified HTTP version test.
The new condition produces smaller diff to the default branch and is similar to
HTTP/2 case.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 12 Jan 2022 11:54:39 +0300 |
parents | 10522e8dea41 |
children | d76237ed9327 |
files | src/http/ngx_http_request_body.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 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; }