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/lib/restclient
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
..
windows Remove some references to Puppet. 2014-03-31 20:36:36 -07:00
abstract_response.rb Use start_with? instead of /^/ for rel redirects. 2015-04-15 16:32:05 -07:00
exceptions.rb Add all IANA specified HTTP status codes. 2015-11-11 17:05:49 -08:00
payload.rb Allow payload to be an IO like object. 2015-03-14 18:49:36 -07:00
platform.rb Rename Platform.mac? to .mac_mri? for clarity. 2014-11-02 18:32:04 -08:00
raw_response.rb Define inspect methods for reqs & responses. 2015-04-15 15:16:20 -07:00
request.rb Minor doc related changes. 2015-11-11 17:29:53 -08:00
resource.rb Deprecate :timeout in favor of :read_timeout. 2015-03-14 15:18:36 -07:00
response.rb Use URI.get_encoding to look up encodings. 2015-11-16 15:23:08 -08:00
utils.rb Use URI.get_encoding to look up encodings. 2015-11-16 15:23:08 -08:00
version.rb Version 2.0.0.rc2 2015-09-13 00:51:21 -07:00
windows.rb Move windows? method into Platform module. 2014-04-03 14:05:18 -07:00