lib/tumblr/request.rb in tumblr_client-0.6.1 vs lib/tumblr/request.rb in tumblr_client-0.6.5
- old
+ new
@@ -8,19 +8,19 @@
response = connection.get do |req|
req.url path
req.params = params
end
#check for errors and encapsulate
- JSON.parse(response.body)['response']
+ response.body['response']
end
#Performs post request
def post(path, params={})
response = connection.post do |req|
req.url path
req.body = params unless params.empty?
end
#Check for errors and encapsulate
- JSON.parse(response.body)['response']
+ response.body['response']
end
end
end