mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 12:45:21 +00:00
r2193 merge:
leave HEAD method while error_page redirection
This commit is contained in:
parent
fc50a8759a
commit
2bafd39833
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue