Reset r->uri_changed in a named location (ticket #184).
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 5bb01d9..6d7dc0a 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2588,6 +2588,7 @@
 
             r->internal = 1;
             r->content_handler = NULL;
+            r->uri_changed = 0;
             r->loc_conf = (*clcfp)->loc_conf;
 
             /* clear the modules contexts */