diff src/http/ngx_http_core_module.c @ 606: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
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -900,11 +900,6 @@ ngx_http_core_rewrite_phase(ngx_http_req
 
     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;
@@ -914,7 +909,7 @@ ngx_http_core_rewrite_phase(ngx_http_req
         return NGX_OK;
     }
 
-    /* NGX_AGAIN || rc == NGX_ERROR || rc == NGX_HTTP_...  */
+    /* NGX_OK, NGX_AGAIN, NGX_ERROR, NGX_HTTP_...  */
 
     ngx_http_finalize_request(r, rc);