lib/mls.rb in mls-0.2.52 vs lib/mls.rb in mls-0.2.53
- old
+ new
@@ -140,9 +140,11 @@
req = Net::HTTP::Get.new("/api#{url}?" + params.to_param)
add_headers(req)
response = connection.request(req)
handle_response(response, valid_response_codes)
+
+ response.body.force_encoding(Encoding::UTF_8)
if block_given?
yield(response, response.code.to_i)
else
response
end