Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 2183:4a5bfd728a12
disable original URI usage in proxy_pass after X-Accel-Redirect
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 17 Aug 2008 17:44:08 +0000 |
parents | dce5ddef5af9 |
children | 274c0f3ea600 |
comparison
equal
deleted
inserted
replaced
2182:23309bcd9937 | 2183:4a5bfd728a12 |
---|---|
1298 | 1298 |
1299 if (r->method != NGX_HTTP_HEAD) { | 1299 if (r->method != NGX_HTTP_HEAD) { |
1300 r->method = NGX_HTTP_GET; | 1300 r->method = NGX_HTTP_GET; |
1301 } | 1301 } |
1302 | 1302 |
1303 r->valid_unparsed_uri = 0; | |
1304 | |
1303 ngx_http_internal_redirect(r, uri, &args); | 1305 ngx_http_internal_redirect(r, uri, &args); |
1304 return; | 1306 return; |
1305 } | 1307 } |
1306 | 1308 |
1307 part = &u->headers_in.headers.part; | 1309 part = &u->headers_in.headers.part; |