summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-11-20 17:09:15 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-11-20 17:09:15 +0000
commit2bafd398334e4a802c3363c63c9a1275d8158a85 (patch)
tree14fba38007fee121e74141ea8abc09940e21fa0e /src
parentfc50a8759a11c2e7a2a36793968b2b783a841117 (diff)
downloadnginx-2bafd398334e4a802c3363c63c9a1275d8158a85.tar.gz
nginx-2bafd398334e4a802c3363c63c9a1275d8158a85.tar.bz2
r2193 merge:
leave HEAD method while error_page redirection
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_special_response.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index 3ef5c7cda..f644e7812 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -489,8 +489,10 @@ ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page)
if (uri->data[0] == '/') {
- r->method = NGX_HTTP_GET;
- r->method_name = ngx_http_get_name;
+ if (r->method != NGX_HTTP_HEAD) {
+ r->method = NGX_HTTP_GET;
+ r->method_name = ngx_http_get_name;
+ }
return ngx_http_internal_redirect(r, uri, args);
}