mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix: "return" always overrode "error_page" response code
This commit is contained in:
parent
4c7f511364
commit
97c7e1a986
@ -178,7 +178,11 @@ ngx_http_rewrite_handler(ngx_http_request_t *r)
|
||||
code(e);
|
||||
}
|
||||
|
||||
return e->status;
|
||||
if (r->err_status == 0) {
|
||||
return e->status;
|
||||
}
|
||||
|
||||
return r->err_status;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user