Permalink
Browse files

1.9.3's Net::HTTP#get doesn't return data as a secondary value anymore

  • Loading branch information...
1 parent a3a4a98 commit f933bfc4d0fef36b2c1890f6cee7429744305d3d Visnu Pitiyanuvath committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/gattica/engine.rb
View
@@ -156,7 +156,7 @@ def token=(token)
# sure it's valid and not an error
def do_http_get(query_string)
- response, data = @http.get(query_string, @headers)
+ response = @http.get(query_string, @headers)
# error checking
if response.code != '200'
@@ -170,7 +170,7 @@ def do_http_get(query_string)
end
end
- return data
+ return response.body
end

0 comments on commit f933bfc

Please sign in to comment.