http
http copied to clipboard
Auto-inject Accept-Encoding header when AutoInflate is used
Right now one is forced to manually specify Accept-Encoding header:
HTTP.headers(:accept_encoding => "gzip,deflate").use(:auto_inflate)
Will be awesome if it will be possible to do simply:
HTTP.use(:auto_inflate, :encodings => [:gzip, :deflate])
or such...