lib/restfully/http/adapters/rest_client_adapter.rb in restfully-0.6.1 vs lib/restfully/http/adapters/rest_client_adapter.rb in restfully-0.6.2
- old
+ new
@@ -51,10 +51,10 @@
body = response.to_s
headers.delete(:status)
status = response.code
rescue RestClient::ExceptionWithResponse => e
body = e.response.to_s
- headers = e.response.headers
+ headers = e.response.headers rescue {}
status = e.http_code
end
Response.new(status, headers, body)
end # def in_order_to_get_the_response_to
\ No newline at end of file