aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-21 16:52:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-21 16:52:10 +0000
commitcd8b43cde730a2fe038c8eb8ced09eb075a73969 (patch)
treef9b79aad0d8277e985ec1f1defe82d1d628a9432 /src/http/ngx_http_request.c
parentf2694cb9250a7fd13f8f681756f103529a1f5772 (diff)
downloadnginx-cd8b43cde730a2fe038c8eb8ced09eb075a73969.tar.gz
nginx-cd8b43cde730a2fe038c8eb8ced09eb075a73969.zip
rename core_srv_conf fields to more understandable default_server and server
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index a4041f515..3ae6ddb28 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -381,7 +381,7 @@ ngx_http_init_request(ngx_event_t *rev)
r->virtual_names = addr_conf->virtual_names;
/* the default server configuration for the address:port */
- cscf = addr_conf->core_srv_conf;
+ cscf = addr_conf->default_server;
r->main_conf = cscf->ctx->main_conf;
r->srv_conf = cscf->ctx->srv_conf;
@@ -1704,7 +1704,7 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
for (i = 0; i < r->virtual_names->nregex; i++) {
- if (sn[i].core_srv_conf->captures && r->captures == NULL) {
+ if (sn[i].server->captures && r->captures == NULL) {
ncaptures = (NGX_HTTP_MAX_CAPTURES + 1) * 3;
@@ -1730,7 +1730,7 @@ ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
/* match */
- cscf = sn[i].core_srv_conf;
+ cscf = sn[i].server;
r->ncaptures = ncaptures;
r->captures_data = host;