Fixed gzip header filtering

* Fixes #1571
* Made tests test what they said they were testing
Merge pull request #1571 from jroper/1571-gzip-headers

gzip filter doesn't preserve existing response headers