Return-Path: X-Original-To: apmail-httpd-bugs-archive@www.apache.org Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33AABD382 for ; Thu, 12 Jul 2012 15:13:05 +0000 (UTC) Received: (qmail 63788 invoked by uid 500); 12 Jul 2012 15:13:05 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 63593 invoked by uid 500); 12 Jul 2012 15:13:04 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 63547 invoked by uid 99); 12 Jul 2012 15:13:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2012 15:13:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2012 15:13:00 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 98B5B51A3; Thu, 12 Jul 2012 15:12:39 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 53539] content type and character set are changing when the content served from disk_cache becomes 'stale' Date: Thu, 12 Jul 2012 15:12:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_cache X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: rpluem@apache.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=53539 --- Comment #3 from Ruediger Pluem --- (In reply to comment #2) You are correct. I looked in two different locations. The patch I mentioned is already in 2.4.2. Can you please try the following one: Index: modules/cache/mod_cache.c =================================================================== --- modules/cache/mod_cache.c (revision 1352429) +++ modules/cache/mod_cache.c (working copy) @@ -1686,6 +1686,9 @@ r->err_headers_out = cache->stale_handle->resp_hdrs; + ap_set_content_type(r, apr_table_get( + cache->stale_handle->resp_hdrs, "Content-Type")); + /* add a revalidation warning */ warn_head = apr_table_get(r->err_headers_out, "Warning"); if ((warn_head == NULL) || ((warn_head != NULL) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org