Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 3805:7f491d3f3b57
revert processing NGX_OK in rewrite phase changed in r3798,
this broke "return 204" and "return code text"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 29 Nov 2010 19:40:54 +0000 |
parents | 96f17c930a9e |
children | 01542054f2c3 |
comparison
equal
deleted
inserted
replaced
3804:25ced81f4005 | 3805:7f491d3f3b57 |
---|---|
897 | 897 |
898 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 898 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
899 "rewrite phase: %ui", r->phase_handler); | 899 "rewrite phase: %ui", r->phase_handler); |
900 | 900 |
901 rc = ph->handler(r); | 901 rc = ph->handler(r); |
902 | |
903 if (rc == NGX_OK) { | |
904 r->phase_handler = ph->next; | |
905 return NGX_AGAIN; | |
906 } | |
907 | 902 |
908 if (rc == NGX_DECLINED) { | 903 if (rc == NGX_DECLINED) { |
909 r->phase_handler++; | 904 r->phase_handler++; |
910 return NGX_AGAIN; | 905 return NGX_AGAIN; |
911 } | 906 } |