Mercurial > hg > nginx
diff src/http/modules/ngx_http_proxy_module.c @ 1525:d916a5d7de28 stable-0.5
r1467 merge:
escape internal request URI in proxy_pass
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 23 Sep 2007 19:19:14 +0000 |
parents | 840b81d13a2f |
children | 44bd4db45b30 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -553,7 +553,7 @@ ngx_http_proxy_create_request(ngx_http_r } else { unparsed_uri = 0; - if (r->quoted_uri) { + if (r->quoted_uri || r->internal) { escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len, r->uri.len - loc_len, NGX_ESCAPE_URI); }