mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
revert processing NGX_OK and NGX_DONE in rewrite phase changed in r3634
This commit is contained in:
parent
d4b08c9134
commit
8c6144f022
@ -900,12 +900,21 @@ ngx_http_core_rewrite_phase(ngx_http_request_t *r, ngx_http_phase_handler_t *ph)
|
||||
|
||||
rc = ph->handler(r);
|
||||
|
||||
if (rc == NGX_OK) {
|
||||
r->phase_handler = ph->next;
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
||||
if (rc == NGX_DECLINED) {
|
||||
r->phase_handler++;
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
||||
/* rc == NGX_OK || rc == NGX_ERROR || rc == NGX_HTTP_... */
|
||||
if (rc == NGX_DONE) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
/* NGX_AGAIN || rc == NGX_ERROR || rc == NGX_HTTP_... */
|
||||
|
||||
ngx_http_finalize_request(r, rc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user