geemus/excon — pull request #319 by burns (2013-11-11 23:06:27+00:00)
Title: Decompress middleware updates

- detect case-insensitive header
- encoding values are listed in the order they were applied
- remove processed encoding from header
- add Accept-Encoding if missing

The `Connection: close` detection is probably overkill, but technically the header is case-insensitive and may contain multiple values. Could probably get away with `datum[:response][:headers][key] =~ /close/i`. This will change a bit when the `:persistent` option is added. So if you'd rather use that, I can change it then.