mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 13:04:26 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1688,7 +1688,7 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
|
|||
|
||||
#if (NGX_PCRE)
|
||||
|
||||
if (r->virtual_names->nregex) {
|
||||
if (len && r->virtual_names->nregex) {
|
||||
size_t ncaptures;
|
||||
ngx_int_t n;
|
||||
ngx_uint_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue