Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request_body.c @ 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 | 61d0fa67b55e |
children |
comparison
equal
deleted
inserted
replaced
8784:10522e8dea41 | 8785:9aff230f10d1 |
---|---|
940 ngx_int_t n; | 940 ngx_int_t n; |
941 ngx_str_t *expect; | 941 ngx_str_t *expect; |
942 | 942 |
943 if (r->expect_tested | 943 if (r->expect_tested |
944 || r->headers_in.expect == NULL | 944 || r->headers_in.expect == NULL |
945 || r->http_version != NGX_HTTP_VERSION_11) | 945 || r->http_version < NGX_HTTP_VERSION_11 |
946 #if (NGX_HTTP_V2) | |
947 || r->stream != NULL | |
948 #endif | |
949 #if (NGX_HTTP_V3) | |
950 || r->connection->quic != NULL | |
951 #endif | |
952 ) | |
946 { | 953 { |
947 return NGX_OK; | 954 return NGX_OK; |
948 } | 955 } |
949 | 956 |
950 r->expect_tested = 1; | 957 r->expect_tested = 1; |