diff 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
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;