From: Igor Sysoev Date: Tue, 3 Oct 2006 18:06:44 +0000 (+0000) Subject: after redirecting by error_page any rewrite directive will return this code, X-Git-Tag: release-0.4.6~8 X-Git-Url: http://git.kaiwu.me/%7Bsubstring-before(@doc,%20'.xml')%7D.html?a=commitdiff_plain;h=cccc18562389c759ae84ab1691e6a5c31cc095a6;p=nginx.git after redirecting by error_page any rewrite directive will return this code, bug introduced in r727 --- diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c index 31923755d..274991e4d 100644 --- 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_request_t *r) code(e); } + if (e->status == NGX_DECLINED) { + return NGX_DECLINED; + } + if (r->err_status == 0) { return e->status; }