diff --git a/lib/fog/core/connection.rb b/lib/fog/core/connection.rb index 95f51c785..7a16931bf 100644 --- a/lib/fog/core/connection.rb +++ b/lib/fog/core/connection.rb @@ -13,7 +13,7 @@ module Fog unless block_given? if (parser = params.delete(:parser)) body = Nokogiri::XML::SAX::PushParser.new(parser) - block = lambda { |chunk, remaining, total| body << chunk } + params[:response_block] = lambda { |chunk, remaining, total| body << chunk } end end