mirror of
https://github.com/nginx/nginx.git
synced 2024-12-21 01:27:48 +08:00
QUIC: modified HTTP version test.
The new condition produces smaller diff to the default branch and is similar to HTTP/2 case.
This commit is contained in:
parent
b1356ade07
commit
109166e4fa
@ -942,7 +942,14 @@ ngx_http_test_expect(ngx_http_request_t *r)
|
|||||||
|
|
||||||
if (r->expect_tested
|
if (r->expect_tested
|
||||||
|| r->headers_in.expect == NULL
|
|| 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;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user