const char *accepts;
/* Only work on main request, not subrequests, that are not
- * a 204 response with no content, and not a partial response
- * to a Range request.
+ * a 204 response with no content, and are not tagged with the
+ * no-brotli env variable, and are not a partial response to
+ * a Range request.
*/
if (r->main || r->status == HTTP_NO_CONTENT
+ || apr_table_get(r->subprocess_env, "no-brotli")
|| apr_table_get(r->headers_out, "Content-Range")) {
ap_remove_output_filter(f);
return ap_pass_brigade(f->next, bb);