Permalink
Browse files

Merge pull request #10 from fortnightlabs/1.9.3

1.9.3's Net::HTTP#get doesn't return data as a secondary value anymore
  • Loading branch information...
2 parents a3a4a98 + f933bfc commit c482107de59792083b1d574b4ab111ab82aeb464 Chris Le committed Apr 19, 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 c482107

Please sign in to comment.