mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
do not run regex for empty host name since regex always fails in this case,
the bug had been introduced in r2196
This commit is contained in:
parent
315cfa0ab3
commit
663e957957
@ -1688,7 +1688,7 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
|
|||||||
|
|
||||||
#if (NGX_PCRE)
|
#if (NGX_PCRE)
|
||||||
|
|
||||||
if (r->virtual_names->nregex) {
|
if (len && r->virtual_names->nregex) {
|
||||||
size_t ncaptures;
|
size_t ncaptures;
|
||||||
ngx_int_t n;
|
ngx_int_t n;
|
||||||
ngx_uint_t i;
|
ngx_uint_t i;
|
||||||
|
Loading…
Reference in New Issue
Block a user