changeset 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 5d4111daf388
children 5187a63d9fca
files src/http/modules/ngx_http_rewrite_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;
     }