mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix "error_page 497 https://" case
patch by Maxim Dounin the bug has been introduced in r3782
This commit is contained in:
parent
eb1a344dd3
commit
64d5f9ba26
@ -570,7 +570,14 @@ ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page)
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
r->err_status = overwrite > 0 ? overwrite : NGX_HTTP_MOVED_TEMPORARILY;
|
||||
if (overwrite >= NGX_HTTP_MOVED_PERMANENTLY
|
||||
&& overwrite <= NGX_HTTP_SEE_OTHER)
|
||||
{
|
||||
r->err_status = overwrite;
|
||||
|
||||
} else {
|
||||
r->err_status = NGX_HTTP_MOVED_TEMPORARILY;
|
||||
}
|
||||
|
||||
location->hash = 1;
|
||||
ngx_str_set(&location->key, "Location");
|
||||
|
Loading…
Reference in New Issue
Block a user