https://issues.apache.org/bugzilla/show_bug.cgi?id=40953





--- Comment #7 from Nick Kew <[email protected]>  2009-02-18 16:27:30 PST ---
This now looks like two separate issues.  Comment 6 concerns a 302 response
with a Content-Length header but too much content.  FWIW, I expect it can be
more easily duplicated with mod_asis.

FWIW, I *think* (but haven't tested - bug me if I drop it) the following patch
should fix the original issue.  But it won't do anything for your 302 case.

--- server/util_script.c        (revision 745696 ( 
https://svn.apache.org/viewcvs.cgi?view=rev&rev=745696 ))
+++ server/util_script.c        (working copy)
@@ -488,6 +488,11 @@
             if ((cgi_status == HTTP_UNSET) && (r->method_number == M_GET)) {
                 cond_status = ap_meets_conditions(r);
             }
+            else if ((cgi_status == HTTP_NO_CONTENT) ||
+                     (cgi_status == HTTP_NOT_MODIFIED) ||
+                     ap_is_HTTP_INFO(cgi_status)) {
+                r->header_only = 1; /* discard any body */
+            }
             apr_table_overlap(r->err_headers_out, merge,
                 APR_OVERLAP_TABLES_MERGE);
             if (!apr_is_empty_table(cookie_table)) {


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to