diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 16:52:10 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 16:52:10 +0000 |
commit | cd8b43cde730a2fe038c8eb8ced09eb075a73969 (patch) | |
tree | f9b79aad0d8277e985ec1f1defe82d1d628a9432 /src/http/ngx_http_request.c | |
parent | f2694cb9250a7fd13f8f681756f103529a1f5772 (diff) | |
download | nginx-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.c | 6 |
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; |