diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-03 18:06:44 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-03 18:06:44 +0000 |
commit | cccc18562389c759ae84ab1691e6a5c31cc095a6 (patch) | |
tree | ea3e08aa14f6bcb083b8bc83c55598dc7294b625 | |
parent | afe577cc6c7508984c8b47b71dcdc273b95a226d (diff) | |
download | nginx-cccc18562389c759ae84ab1691e6a5c31cc095a6.tar.gz nginx-cccc18562389c759ae84ab1691e6a5c31cc095a6.zip |
after redirecting by error_page any rewrite directive will return this code,
bug introduced in r727
-rw-r--r-- | src/http/modules/ngx_http_rewrite_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |