skruger / Surrogate

Proxy server written in erlang. Supports reverse proxy load balancing and forward proxy with http (including CONNECT), socks4, socks5, and transparent proxy modes.
66 stars 14 forks source link

enable_gzip content-length problem #4

Closed skruger closed 13 years ago

skruger commented 13 years ago

Enable gzip results in responses being larger than the original content-length. When browsing fastinfra.com this results in pages being truncated at the length of the gzip response.

Possible fix:

Force chunked encoding when possible. There are bugs in filter_force_chunk that resulted in this problem still appearing.

skruger commented 13 years ago

Appears to be working now.