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
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
..
restclient Use URI.get_encoding to look up encodings. 2015-11-16 15:23:08 -08:00
rest-client.rb more logical way to require the library. Closes #20 2010-04-15 17:55:36 +02:00
rest_client.rb Merge commit 'technoweenie/multipart_streaming' into prereorg 2009-08-12 12:37:21 -04:00
restclient.rb Validate that proc passed to add_before_exec... 2015-06-09 23:53:09 -07:00