You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP::Response::Body will force a response's contents to whatever encoding was specified in the Content-Type header. That encoding should be validated before applied since some common encodings don't appear in ruby's Encoding lookup table.
/Users/kyle/.rvm/gems/ruby-2.2.1/gems/http-1.0.2/lib/http/response/body.rb:40:in `force_encoding': unknown encoding name - utf8 (ArgumentError)
from /Users/kyle/.rvm/gems/ruby-2.2.1/gems/http-1.0.2/lib/http/response/body.rb:40:in `to_s'
from client.rb:3:in `<main>'
The text was updated successfully, but these errors were encountered:
HTTP::Response::Body
will force a response's contents to whatever encoding was specified in theContent-Type
header. That encoding should be validated before applied since some common encodings don't appear in ruby'sEncoding
lookup table.For example,
Pulling that page using
HTTP
...The text was updated successfully, but these errors were encountered: