@@ -240,7 +240,7 @@
const char *encoding;
/* only work on main request/no subrequests */
- if (!ap_is_initial_req(r)) {
+ if (r->main != NULL) {
ap_remove_output_filter(f);
Actually, explain to me how this code successfully leaves the http protocol
layer output_filter in the filter chain for subrequest components? I'd think
this code (original, and even the patched flavor) could break the filter stack
by yanking the deflate filter out from the middle of servicing a request, e.g.
when a subrequest is included midstream.
It seems this should be a conditional add-filter, never a conditional remove
filter event. add-filter on the top level request, noop on nested requests.