From b3e73d869ecef9248468e0ccc2d7d0abdbee495c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 10 Oct 2003 15:10:50 +0000 Subject: nginx-0.0.1-2003-10-10-19:10:50 import --- src/http/modules/proxy/ngx_http_proxy_handler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/http/modules/proxy') diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.c b/src/http/modules/proxy/ngx_http_proxy_handler.c index 8be3aa341..adb9be5c4 100644 --- a/src/http/modules/proxy/ngx_http_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_proxy_handler.c @@ -1108,7 +1108,9 @@ static int ngx_http_proxy_init(ngx_cycle_t *cycle) ctx = (ngx_http_conf_ctx_t *) cycle->conf_ctx[ngx_http_module.index]; cmcf = ctx->main_conf[ngx_http_core_module.ctx_index]; - ngx_test_null(h, ngx_push_array(&cmcf->translate_handlers), NGX_ERROR); + ngx_test_null(h, ngx_push_array( + &cmcf->phases[NGX_HTTP_TRANSLATE_PHASE].handlers), + NGX_ERROR); *h = ngx_http_proxy_translate_handler; -- cgit