toland/patron — Issue #53: .get fails on encoding conversion when the target isn't text
Author: Empact
Created: 2012-01-18 01:15:37+00:00
State: open

When I get an image with the latest Patron, I get the following exception:

#

/patron-0.4.16/lib/patron/response.rb:69:in `encode!'
/patron-0.4.16/lib/patron/response.rb:69:in `convert_to_default_encoding!'
/patron-0.4.16/lib/patron/response.rb:42:in `block in initialize'
/patron-0.4.16/lib/patron/response.rb:41:in `each'
/patron-0.4.16/lib/patron/response.rb:41:in `initialize'

188b36235bc2 solves this problem, but it hasn't been released.