Added the SecDisableBackendCompression directive

This commit is contained in:
ivanr
2010-03-19 20:00:59 +00:00
parent b784acd316
commit 98982e2962
5 changed files with 54 additions and 2 deletions

View File

@@ -781,6 +781,14 @@ static int hook_request_late(request_rec *r) {
rc = perform_interception(msr);
}
/* Remove the compression ability indications the client set,
* but only if we need to disable backend compression.
*/
if (msr->txcfg->disable_backend_compression) {
apr_table_unset(r->headers_in, "Accept-Encoding");
apr_table_unset(r->headers_in, "TE");
}
return rc;
}