diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2022-11-22 14:10:04 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2022-11-22 14:10:04 +0400 |
commit | 36d80a52693904d829d9a4e27361bcd29e41d48d (patch) | |
tree | e6603a2bd3801cdec16fc4062afb0bdf4409f721 /src/http/v3/ngx_http_v3_request.c | |
parent | 0da752661530c145b3c5d1a739115b1968219732 (diff) | |
download | nginx-36d80a52693904d829d9a4e27361bcd29e41d48d.tar.gz nginx-36d80a52693904d829d9a4e27361bcd29e41d48d.zip |
HTTP/3: fixed server_name regex captures (ticket #2407).
Previously, HTTP/3 stream connection didn't inherit the servername regex
from the main QUIC connection saved when processing SNI and using regular
expressions in server names. As a result, it didn't execute to set regex
captures when choosing the virtual server while parsing HTTP/3 headers.
Diffstat (limited to 'src/http/v3/ngx_http_v3_request.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_request.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 14802249b..7921d8dc5 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -81,6 +81,7 @@ ngx_http_v3_init(ngx_connection_t *c) if (phc->ssl_servername) { hc->ssl_servername = phc->ssl_servername; + hc->ssl_servername_regex = phc->ssl_servername_regex; hc->conf_ctx = phc->conf_ctx; ngx_set_connection_log(c, clcf->error_log); |