From 35e16ee9294f86a44a1803ce118a83be6f2c0be2 Mon Sep 17 00:00:00 2001 From: Atsushi Konno Date: Wed, 1 Apr 2009 22:24:17 +0900 Subject: [PATCH] * Fixed Bug. - set 0 to Content-Length if it has Location header. --- src/mod_chxj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_chxj.c b/src/mod_chxj.c index 99c35669..4099d8c9 100644 --- a/src/mod_chxj.c +++ b/src/mod_chxj.c @@ -1222,10 +1222,10 @@ chxj_output_filter(ap_filter_t *f, apr_bucket_brigade *bb) if (apr_table_get(r->headers_out, "Location") || apr_table_get(r->err_headers_out, "Location")) { if (! ap_is_HTTP_REDIRECT(r->status)) { r->status = HTTP_MOVED_TEMPORARILY; - ctx->buffer = apr_pstrdup(pool, ""); - ctx->len = 0; - ap_set_content_length(r, (apr_off_t)ctx->len); } + ctx->buffer = apr_pstrdup(pool, ""); + ctx->len = 0; + ap_set_content_length(r, (apr_off_t)ctx->len); } chxj_cookie_unlock(r,lock); s_add_no_cache_headers(r, entryp); -- 2.11.0