fix: "return" always overrode "error_page" response code

This commit is contained in:
Igor Sysoev 2006-10-02 08:37:11 +00:00
parent 4c7f511364
commit 97c7e1a986

View File

@ -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;
}