summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-03-04 14:57:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-03-04 14:57:07 +0000
commit887dd4e5d50d2064324482b3c1625961af8f80d9 (patch)
treefdf7c32604530fea740e0d6584f3409a8c933321
parentbe02468c6de84c0b57ea79c3de2c7d2096c422bc (diff)
downloadnginx-887dd4e5d50d2064324482b3c1625961af8f80d9.tar.gz
nginx-887dd4e5d50d2064324482b3c1625961af8f80d9.tar.bz2
reset r->content_handler in a named location
-rw-r--r--src/http/ngx_http_core_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 1830295e2..2283889e4 100644
--- 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_t *r, ngx_str_t *name)
"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_t *r, ngx_str_t *name)
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;