rewrite and InputFilter DEFLATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux