# HG changeset patch # User Sergey Kandaurov # Date 1669111804 -14400 # Node ID 0f5fc7a320db621da8731a8832f486c7167b236b # Parent 6cf8ed15fd00668b7efa0226c06f47d7238f26e8 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. diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c --- 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);