http icon indicating copy to clipboard operation
http copied to clipboard

Auto-inject Accept-Encoding header when AutoInflate is used

Open ixti opened this issue 6 years ago • 0 comments

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...

ixti avatar Jan 18 '19 22:01 ixti