From 74a5ddb47aef86bb07336713bb1ace0007c2d452 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 18 Jul 2004 19:11:20 +0000 Subject: nginx-0.0.7-2004-07-18-23:11:20 import --- src/http/modules/ngx_http_rewrite_handler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/http/modules/ngx_http_rewrite_handler.c') diff --git a/src/http/modules/ngx_http_rewrite_handler.c b/src/http/modules/ngx_http_rewrite_handler.c index 7d36b131a..5c25c89e4 100644 --- a/src/http/modules/ngx_http_rewrite_handler.c +++ b/src/http/modules/ngx_http_rewrite_handler.c @@ -369,11 +369,9 @@ static char *ngx_http_rewrite_rule(ngx_conf_t *cf, ngx_command_t *cmd, static ngx_int_t ngx_http_rewrite_init(ngx_cycle_t *cycle) { ngx_http_handler_pt *h; - ngx_http_conf_ctx_t *ctx; ngx_http_core_main_conf_t *cmcf; - ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index]; - cmcf = ctx->main_conf[ngx_http_core_module.ctx_index]; + cmcf = ngx_http_cycle_get_module_main_conf(cycle, ngx_http_core_module); h = ngx_push_array(&cmcf->phases[NGX_HTTP_REWRITE_PHASE].handlers); if (h == NULL) { -- cgit