diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-07-07 10:22:30 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-07-07 10:22:30 +0000 |
| commit | c410db96b9103d30a33a7f16f3ede58265d63bab (patch) | |
| tree | d4c212a844ca250be346fe28359e2180a52b7e26 /src/http/ngx_http_core_module.c | |
| parent | b5f5da3a37f2169d6745f7160203a792ab49cac0 (diff) | |
| download | nginx-c410db96b9103d30a33a7f16f3ede58265d63bab.tar.gz nginx-c410db96b9103d30a33a7f16f3ede58265d63bab.tar.bz2 | |
r2008 merge:
*) host in request line has priority
*) allow several Host headers
*) validate host
Diffstat (limited to 'src/http/ngx_http_core_module.c')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index cb9eb14c7..a80947058 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3216,8 +3216,7 @@ ngx_http_core_server_name(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) value[i].len--; value[i].data++; - sn->regex = ngx_regex_compile(&value[i], NGX_REGEX_CASELESS, cf->pool, - &err); + sn->regex = ngx_regex_compile(&value[i], 0, cf->pool, &err); if (sn->regex == NULL) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%s", err.data); |
