1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/spec
Andy Brody de03c9d4d1 Use URI.get_encoding to look up encodings.
Use the (undocumented) URI.get_encoding method introduced in Ruby 2.1 to
look up encodings by the aliases specified in HTML5. This means that the
behavior will differ slightly between versions of Ruby, but the
encodings selected are largely compatible.

For example, `ISO-8859-1` is an alias for `Windows-1252` per the HTML5
specification, while in ruby versions < 2.1 it will be used as is. These
two encodings are largely compatible, and the alias exists due to
servers that return a `charset=ISO-8859-1` when they actually are using
`Windows-1252`.

Other aliases that differ include `shift_jis` (rendered as
`Windows-31J`) and `euc-jp` (rendered as `CP51932`).
2015-11-16 15:23:08 -08:00
..
integration Use URI.get_encoding to look up encodings. 2015-11-16 15:23:08 -08:00
unit Use URI.get_encoding to look up encodings. 2015-11-16 15:23:08 -08:00
helpers.rb Deprecate :timeout in favor of :read_timeout. 2015-03-14 15:18:36 -07:00
spec_helper.rb Fix up tests for non HTTP_PROXY supporting ruby. 2015-04-24 12:54:19 -07:00