httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Lobato <tomlob...@gmail.com>
Subject [users@httpd] rewrite and InputFilter DEFLATE
Date Sun, 09 Nov 2014 14:04:33 GMT
Hello!

I`m digging with this problem for a while and couldn`t find references
in lists or searches.

In Apache 2.4.7 I`m using "InputFilter DEFLATE" to inflate gzipped
requests (as documented in
http://httpd.apache.org/docs/2.4/mod/mod_deflate.html#enable) and it
works great. But a simple rewrite:

RewriteRule ^.*$ index.php [NC,L]

makes the inflate stop to work, index.php receives the body still
gzipped. If I comment the line above and point my request directly to
index.php the inflation works again.

I`ve debugged modules/filters/mod_deflate.c and it is aborting
inflation on line 1036, when checking body size:

/* zero length body? step aside */
bkt = APR_BRIGADE_FIRST(ctx->bb);
if (APR_BUCKET_IS_EOS(bkt)) {
    ap_remove_input_filter(f);
    return ap_get_brigade(f->next, bb, mode, block, read bytes);
}

I`m really not aware of any causes for mod_rewrite to be incompatible
to mod_deflate. Inflating before or after the rewrite engine I think
it should work.

Do you have any pointer to understand this issue?


Thanks,
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message