mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
revert processing NGX_OK and NGX_DONE in rewrite phase changed in r3634
This commit is contained in:
parent
d4b08c9134
commit
8c6144f022
1 changed files with 10 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue