comparison src/http/v3/ngx_http_v3_request.c @ 8964:0f5fc7a320db quic

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 22 Nov 2022 14:10:04 +0400
parents f9d7930d0eed
children 210ad79a8853
comparison
equal deleted inserted replaced
8960:6cf8ed15fd00 8964:0f5fc7a320db
79 79
80 phc = ngx_http_quic_get_connection(c); 80 phc = ngx_http_quic_get_connection(c);
81 81
82 if (phc->ssl_servername) { 82 if (phc->ssl_servername) {
83 hc->ssl_servername = phc->ssl_servername; 83 hc->ssl_servername = phc->ssl_servername;
84 hc->ssl_servername_regex = phc->ssl_servername_regex;
84 hc->conf_ctx = phc->conf_ctx; 85 hc->conf_ctx = phc->conf_ctx;
85 86
86 ngx_set_connection_log(c, clcf->error_log); 87 ngx_set_connection_log(c, clcf->error_log);
87 } 88 }
88 89