lib/mrkt.rb in mrkt-0.4.0 vs lib/mrkt.rb in mrkt-0.5.0

- old
+ new

@@ -26,13 +26,15 @@ %i(get post delete).each do |http_method| define_method(http_method) do |path, payload = {}, &block| authenticate! - connection.send(http_method, path, payload) do |req| + resp = connection.send(http_method, path, payload) do |req| add_authorization(req) block.call(req) unless block.nil? end + + resp.body end end end end