Fixed gzip/deflate support with correct header name.
Added support for either transfer or content encoding headers.
Merge pull request #534 from keithws/master

Added support for content encoding.