summaryrefslogtreecommitdiffhomepage
path: root/src/http/v3/ngx_http_v3_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-05-11 13:22:10 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-05-11 13:22:10 +0400
commit2ce3eeeeb76318e414b62d399da70872d2de23d8 (patch)
tree869554639be761b886c49486ed896da8a31f0c08 /src/http/v3/ngx_http_v3_request.c
parent6cc803e713698b4b09ab46ccd7ae986faa55c386 (diff)
downloadnginx-2ce3eeeeb76318e414b62d399da70872d2de23d8.tar.gz
nginx-2ce3eeeeb76318e414b62d399da70872d2de23d8.tar.bz2
HTTP/3: removed "http3" parameter of "listen" directive.
The parameter has been deprecated since c851a2ed5ce8.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r--src/http/v3/ngx_http_v3_request.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c
index ff6b40734..6f72dc402 100644
--- a/src/http/v3/ngx_http_v3_request.c
+++ b/src/http/v3/ngx_http_v3_request.c
@@ -1014,14 +1014,12 @@ ngx_http_v3_process_request_header(ngx_http_request_t *r)
h3c = ngx_http_v3_get_session(c);
h3scf = ngx_http_get_module_srv_conf(r, ngx_http_v3_module);
- if (!r->http_connection->addr_conf->http3) {
- if ((h3c->hq && !h3scf->enable_hq) || (!h3c->hq && !h3scf->enable)) {
- ngx_log_error(NGX_LOG_INFO, c->log, 0,
- "client attempted to request the server name "
- "for which the negotiated protocol is disabled");
- ngx_http_finalize_request(r, NGX_HTTP_MISDIRECTED_REQUEST);
- return NGX_ERROR;
- }
+ if ((h3c->hq && !h3scf->enable_hq) || (!h3c->hq && !h3scf->enable)) {
+ ngx_log_error(NGX_LOG_INFO, c->log, 0,
+ "client attempted to request the server name "
+ "for which the negotiated protocol is disabled");
+ ngx_http_finalize_request(r, NGX_HTTP_MISDIRECTED_REQUEST);
+ return NGX_ERROR;
}
if (ngx_http_v3_construct_cookie_header(r) != NGX_OK) {