Summary: | mod_rewrite RewriteRule prevents compressed request body to be inflated by mod_deflate | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Juan Manuel Pérez Mañogil <juan.manuel.perez.manogil> |
Component: | mod_rewrite | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.4.27 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | Test suite, server files, shell script with POST requests |
This is not a mod_rewrite issue. This is caused by mod_deflate itself. Solved by this patch (https://bz.apache.org/bugzilla/show_bug.cgi?id=54255#c3) Linked to ticket #54255 |
Created attachment 35174 [details] Test suite, server files, shell script with POST requests I have configured my apache installation to accept a gzipped body on http requests adding 'SetInputFilter DEFLATE' in the Apache config file (on a global scope). It works as expected except in the case that a matching RewriteRule directive is found. In that case the body is not decompressed and the 'Content-Encoding: gzip' is still present a hint that the deflate module does not take place I suppose. I have prepared a test suite (attached) to reproduce the problem. It requires mod_deflate and mod_filter to be already enabled. It also requires PHP to see the dumped variables. The attachment includes a readme file with more details.