Apache: fix support for gzipped chunked responses

Closes GH-1309.