Klaus Demo nginx / 8c6144f
revert processing NGX_OK and NGX_DONE in rewrite phase changed in r3634 Igor Sysoev 10 years ago
1 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
899899
900900 rc = ph->handler(r);
901901
902 if (rc == NGX_OK) {
903 r->phase_handler = ph->next;
904 return NGX_AGAIN;
905 }
906
902907 if (rc == NGX_DECLINED) {
903908 r->phase_handler++;
904909 return NGX_AGAIN;
905910 }
906911
907 /* rc == NGX_OK || rc == NGX_ERROR || rc == NGX_HTTP_... */
912 if (rc == NGX_DONE) {
913 return NGX_OK;
914 }
915
916 /* NGX_AGAIN || rc == NGX_ERROR || rc == NGX_HTTP_... */
908917
909918 ngx_http_finalize_request(r, rc);
910919