]> git.kaiwu.me - nginx.git/commitdiff
disable original URI usage in proxy_pass after X-Accel-Redirect
authorIgor Sysoev <igor@sysoev.ru>
Sun, 17 Aug 2008 17:44:08 +0000 (17:44 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 17 Aug 2008 17:44:08 +0000 (17:44 +0000)
src/http/ngx_http_upstream.c

index 191219b7381a4714410b273296edd070618c4c18..c2709961644647f98b2d4d379e53061c6fdb430c 100644 (file)
@@ -1300,6 +1300,8 @@ ngx_http_upstream_process_header(ngx_event_t *rev)
             r->method = NGX_HTTP_GET;
         }
 
+        r->valid_unparsed_uri = 0;
+
         ngx_http_internal_redirect(r, uri, &args);
         return;
     }