mirror of
https://github.com/nginx/nginx.git
synced 2025-07-31 18:46:15 +08: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);
|
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