]> git.kaiwu.me - nginx.git/commitdiff
reset r->content_handler in a named location
authorIgor Sysoev <igor@sysoev.ru>
Tue, 4 Mar 2008 14:57:07 +0000 (14:57 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 4 Mar 2008 14:57:07 +0000 (14:57 +0000)
src/http/ngx_http_core_module.c

index 1830295e2b98d3213ac50cd658c28fbf3c28886e..2283889e4ab1d282c5d202a17d785df640c79bc5 100644 (file)
@@ -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;