# HG changeset patch # User Igor Sysoev # Date 1204642627 0 # Node ID 91879041b681cee7f3400ba029ed6b87db37e7e4 # Parent d02fb350d17de085fd72082376b0a30e14b37134 reset r->content_handler in a named location diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1916,7 +1916,7 @@ ngx_http_named_location(ngx_http_request "named location: %V \"%V?%V\"", name, &r->uri, &r->args); r->internal = 1; - + r->content_handler = NULL; r->loc_conf = clcfp[i]->loc_conf; ngx_http_update_location_config(r); @@ -1924,6 +1924,7 @@ ngx_http_named_location(ngx_http_request cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); r->phase_handler = cmcf->phase_engine.location_rewrite_index; + ngx_http_core_run_phases(r); return NGX_DONE;