mirror of
https://github.com/nginx/nginx.git
synced 2025-01-08 07:03:01 -06:00
after redirecting by error_page any rewrite directive will return this code,
bug introduced in r727
This commit is contained in:
parent
afe577cc6c
commit
cccc185623
@ -178,6 +178,10 @@ ngx_http_rewrite_handler(ngx_http_request_t *r)
|
|||||||
code(e);
|
code(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e->status == NGX_DECLINED) {
|
||||||
|
return NGX_DECLINED;
|
||||||
|
}
|
||||||
|
|
||||||
if (r->err_status == 0) {
|
if (r->err_status == 0) {
|
||||||
return e->status;
|
return e->status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user