]> git.kaiwu.me - nginx.git/commitdiff
after redirecting by error_page any rewrite directive will return this code,
authorIgor Sysoev <igor@sysoev.ru>
Tue, 3 Oct 2006 18:06:44 +0000 (18:06 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 3 Oct 2006 18:06:44 +0000 (18:06 +0000)
bug introduced in r727

src/http/modules/ngx_http_rewrite_module.c

index 31923755dab44339ba84eb5d93db23503bc31519..274991e4dd855509658c83d747c27e7134b7a54f 100644 (file)
@@ -178,6 +178,10 @@ ngx_http_rewrite_handler(ngx_http_request_t *r)
         code(e);
     }
 
+    if (e->status == NGX_DECLINED) {
+        return NGX_DECLINED;
+    }
+
     if (r->err_status == 0) {
         return e->status;
     }