mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
2b5fc1917d
httparty relies on Net::HTTP's built in transparent support for gzip and deflate transfer encoding, however that did not work if you specified your own explicit headers because calling Net::HTTPHeader#initialize_http_header overwrites the work done in Net::HTTPGenericRequest#initialize to set the default User-Agent, Accept, and Accept-Encoding. This also removes the need to duplicate the logic in Net::HTTP around not decoding the response if the caller has explicitly set the Accept-Encoding for their own purposes. This does introduce a slight incompatible change in behavior where previously specifying any custom headers would omit the default headers, while with the new behavior you can override the values however can't omit them entirely. While I'm here, also remove the test for HEAD requests added in |
||
---|---|---|
.. | ||
steps | ||
basic_authentication.feature | ||
command_line.feature | ||
deals_with_http_error_codes.feature | ||
digest_authentication.feature | ||
handles_compressed_responses.feature | ||
handles_multiple_formats.feature | ||
supports_read_timeout_option.feature | ||
supports_redirection.feature | ||
supports_timeout_option.feature |