comparison src/http/ngx_http_request.c @ 3228:1e1e66ef3a40

do not run regex for empty host name since regex always fails in this case, the bug had been introduced in r2196
author Igor Sysoev <igor@sysoev.ru>
date Thu, 22 Oct 2009 09:48:42 +0000
parents c8de5a8b6d17
children e07630a9547d
comparison
equal deleted inserted replaced
3227:a610008bdc1a 3228:1e1e66ef3a40
1686 goto found; 1686 goto found;
1687 } 1687 }
1688 1688
1689 #if (NGX_PCRE) 1689 #if (NGX_PCRE)
1690 1690
1691 if (r->virtual_names->nregex) { 1691 if (len && r->virtual_names->nregex) {
1692 size_t ncaptures; 1692 size_t ncaptures;
1693 ngx_int_t n; 1693 ngx_int_t n;
1694 ngx_uint_t i; 1694 ngx_uint_t i;
1695 ngx_str_t name; 1695 ngx_str_t name;
1696 ngx_http_server_name_t *sn; 1696 ngx_http_server_name_t *sn;