From f88b8a10fd19b65251247b31613c131c65dec0bf Mon Sep 17 00:00:00 2001 From: konn Date: Tue, 7 Apr 2009 09:59:34 +0000 Subject: [PATCH] Merge branch 'branch_0.12.0' into branch_0.13.0-svn git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_13_0@4704 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- src/mod_chxj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod_chxj.c b/src/mod_chxj.c index 99d2c642..8db1a853 100644 --- a/src/mod_chxj.c +++ b/src/mod_chxj.c @@ -1218,6 +1218,8 @@ chxj_output_filter(ap_filter_t *f, apr_bucket_brigade *bb) if (! ap_is_HTTP_REDIRECT(r->status)) { r->status = HTTP_MOVED_TEMPORARILY; } + } + if (ctx->len && ap_is_HTTP_REDIRECT(r->status)) { ctx->buffer = apr_pstrdup(pool, ""); ctx->len = 0; ap_set_content_length(r, (apr_off_t)ctx->len); -- 2.11.0