Changes with Apache 2.0.33-dev
+ *) Allow mod_deflate to work with non-GET requests and properly send
+ Content-Lengths. [Sander Striker <striker@apache.org>]
+
*) Fix ap_directory_merge() to correctly merge configs when there is
no <Directory /> block. [Justin Erenkrantz, William Rowe]
return ap_pass_brigade(f->next, bb);
}
- /* GETs only (for the moment) */
- if (r->method_number != M_GET) {
- return ap_pass_brigade(f->next, bb);
- }
-
- /* only compress text/html files */
- if (strncmp(r->content_type, "text/html", 9)) {
- return ap_pass_brigade(f->next, bb);
- }
-
/* some browsers might have problems, so set no-gzip
* (with browsermatch) for them */
if (apr_table_get(r->subprocess_env, "no-gzip")) {
apr_table_setn(r->headers_out, "Content-Encoding", "gzip");
apr_table_setn(r->headers_out, "Vary", "Accept-Encoding");
+ apr_table_unset(r->headers_out, "Content-Length");
}
APR_BRIGADE_FOREACH(e, bb) {