buckets also in the request structure of the redirect issuer(s). This
prevents filters (such as mod_deflate) from adding garbage to the response,
because ap_finalize_request_protocol won't send another EOS bucket then.
PR: 14451
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@98762
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.45
+ *) While processing filters on internal redirects, remember seen EOS
+ buckets also in the request structure of the redirect issuer(s). This
+ prevents filters (such as mod_deflate) from adding garbage to the
+ response. PR 14451. [André Malo]
+
*) suexec: Be more pedantic when cleaning environment. Clean it
immediately after startup. PR 2790, 10449.
[Jeff Stewart <jws@purdue.edu>, André Malo]
* get two EOS buckets on the same request.
*/
next->r->eos_sent = 1;
+
+ /* remember the eos for internal redirects, too */
+ if (next->r->prev) {
+ request_rec *prev = next->r->prev;
+
+ while (prev) {
+ prev->eos_sent = 1;
+ prev = prev->prev;
+ }
+ }
}
return next->frec->filter_func.out_func(next, bb);
}