1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
httparty/features
Marc Slemko 2b5fc1917d Support gzip/deflate transfer encoding when explicit headers are set.
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
4797c7696d because it was not properly
testing what it claimed to and the code it was trying to test was
removed in 6f6bf6b726 anyway.
2019-11-28 15:23:35 -08:00
..
steps Support gzip/deflate transfer encoding when explicit headers are set. 2019-11-28 15:23:35 -08:00
basic_authentication.feature Cucumber suite sends unique requests 2010-07-07 08:54:22 -04:00
command_line.feature Output httparty version at command line with --version 2015-07-08 11:23:36 -04:00
deals_with_http_error_codes.feature Cucumber suite sends unique requests 2010-07-07 08:54:22 -04:00
digest_authentication.feature Added support for RFC2617 MD5-sess algorithm type 2015-08-18 13:06:39 +10:00
handles_compressed_responses.feature Support gzip/deflate transfer encoding when explicit headers are set. 2019-11-28 15:23:35 -08:00
handles_multiple_formats.feature fix cucumber steps for csv array response 2014-02-08 20:37:37 +01:00
supports_read_timeout_option.feature read/open timeout options now available to HTTParty 2014-03-10 11:35:24 -04:00
supports_redirection.feature Cucumber suite sends unique requests 2010-07-07 08:54:22 -04:00
supports_timeout_option.feature Cucumber suite sends unique requests 2010-07-07 08:54:22 -04:00