Mercurial > hg > nginx-mail
comparison src/http/ngx_http_core_module.c @ 649:9ad199846233 NGINX_0_9_1
nginx 0.9.1
*) Bugfix: "return CODE message" directrives did not work; the bug had
appeared in 0.9.0.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 30 Nov 2010 00:00:00 +0300 |
parents | 428c6e58046a |
children | ce857f6b74a7 |
comparison
equal
deleted
inserted
replaced
648:7830c2b8fedb | 649:9ad199846233 |
---|---|
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 | 902 |
903 if (rc == NGX_OK) { | |
904 r->phase_handler = ph->next; | |
905 return NGX_AGAIN; | |
906 } | |
907 | |
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 } |
912 | 907 |
913 if (rc == NGX_DONE) { | 908 if (rc == NGX_DONE) { |
914 return NGX_OK; | 909 return NGX_OK; |
915 } | 910 } |
916 | 911 |
917 /* NGX_AGAIN || rc == NGX_ERROR || rc == NGX_HTTP_... */ | 912 /* NGX_OK, NGX_AGAIN, NGX_ERROR, NGX_HTTP_... */ |
918 | 913 |
919 ngx_http_finalize_request(r, rc); | 914 ngx_http_finalize_request(r, rc); |
920 | 915 |
921 return NGX_OK; | 916 return NGX_OK; |
922 } | 917 } |