aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2022-01-12 11:54:39 +0300
committerRoman Arutyunyan <arut@nginx.com>2022-01-12 11:54:39 +0300
commit109166e4fa41cb35a91107b0be075aec22a567eb (patch)
tree491f8b11b799e5dbc95ebef57f95560d9b4cc552 /src
parentb1356ade078a8e4092943a2b7b5d3f92dd4def93 (diff)
downloadnginx-109166e4fa41cb35a91107b0be075aec22a567eb.tar.gz
nginx-109166e4fa41cb35a91107b0be075aec22a567eb.zip
QUIC: modified HTTP version test.
The new condition produces smaller diff to the default branch and is similar to HTTP/2 case.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_request_body.c9
1 files changed, 8 insertions, 1 deletions
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;
}