diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-05-15 14:44:47 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-05-15 14:44:47 +0000 |
commit | 5fd0931a611c112265d7d11a448cf26ffb542aad (patch) | |
tree | 503d22585a5fe2a2a703deccbb19552c0eaceac5 /src/http/ngx_http_core_module.c | |
parent | 433608c18072cbaa99deddf4432ab2537397f025 (diff) | |
download | nginx-5fd0931a611c112265d7d11a448cf26ffb542aad.tar.gz nginx-5fd0931a611c112265d7d11a448cf26ffb542aad.zip |
*) 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); |