Mercurial > hg > nginx
diff src/http/ngx_http_special_response.c @ 2685:6c8a5165ed2a
fix r2590: error_page made an external redirect without query string
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 07 Apr 2009 15:50:08 +0000 |
parents | 859f6675a553 |
children | ae4744c28620 |
line wrap: on
line diff
--- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -451,14 +451,14 @@ ngx_http_send_error_page(ngx_http_reques return NGX_ERROR; } - if (err_page->value.lengths) { - ngx_http_split_args(r, &uri, &args); + if (uri.data[0] == '/') { - } else { - args = err_page->args; - } + if (err_page->value.lengths) { + ngx_http_split_args(r, &uri, &args); - if (uri.data[0] == '/') { + } else { + args = err_page->args; + } if (r->method != NGX_HTTP_HEAD) { r->method = NGX_HTTP_GET;