diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-11-20 17:09:15 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-11-20 17:09:15 +0000 |
| commit | 2bafd398334e4a802c3363c63c9a1275d8158a85 (patch) | |
| tree | 14fba38007fee121e74141ea8abc09940e21fa0e | |
| parent | fc50a8759a11c2e7a2a36793968b2b783a841117 (diff) | |
| download | nginx-2bafd398334e4a802c3363c63c9a1275d8158a85.tar.gz nginx-2bafd398334e4a802c3363c63c9a1275d8158a85.tar.bz2 | |
r2193 merge:
leave HEAD method while error_page redirection
| -rw-r--r-- | src/http/ngx_http_special_response.c | 6 |
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); } |
