diff src/http/modules/ngx_http_rewrite_module.c @ 739:9f983de19a1d

after redirecting by error_page any rewrite directive will return this code, bug introduced in r727
author Igor Sysoev <igor@sysoev.ru>
date Tue, 03 Oct 2006 18:06:44 +0000
parents 7b71936d5299
children 5e1a8fe79c4b
line wrap: on
line diff
--- a/src/http/modules/ngx_http_rewrite_module.c
+++ b/src/http/modules/ngx_http_rewrite_module.c
@@ -178,6 +178,10 @@ ngx_http_rewrite_handler(ngx_http_reques
         code(e);
     }
 
+    if (e->status == NGX_DECLINED) {
+        return NGX_DECLINED;
+    }
+
     if (r->err_status == 0) {
         return e->status;
     }