1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] update connection to use new excon response_block format

This commit is contained in:
geemus 2012-03-17 13:39:43 -05:00
parent 48e5689ca9
commit 9c47651995

View file

@ -13,7 +13,7 @@ module Fog
unless block_given? unless block_given?
if (parser = params.delete(:parser)) if (parser = params.delete(:parser))
body = Nokogiri::XML::SAX::PushParser.new(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
end end