mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
remove legacy split for parser input and s3 basic parser
This commit is contained in:
parent
ebe02b874d
commit
2e699d502a
3 changed files with 4 additions and 6 deletions
|
@ -391,7 +391,7 @@ module Fog
|
|||
})
|
||||
|
||||
if parser && !response.body.empty?
|
||||
Nokogiri::XML::SAX::Parser.new(parser).parse(response.body.split(/<\?xml.*\?>/)[1])
|
||||
Nokogiri::XML::SAX::Parser.new(parser).parse(response.body)
|
||||
response.body = parser.response
|
||||
end
|
||||
|
||||
|
|
|
@ -73,8 +73,7 @@ DATA
|
|||
:body => data,
|
||||
:headers => {},
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:method => 'PUT',
|
||||
:parser => Fog::Parsers::AWS::S3::BasicParser.new
|
||||
:method => 'PUT'
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -95,7 +94,6 @@ DATA
|
|||
:headers => {},
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:method => 'PUT',
|
||||
:parser => Fog::Parsers::AWS::S3::BasicParser.new,
|
||||
:query => "requestPayment"
|
||||
})
|
||||
end
|
||||
|
@ -302,7 +300,7 @@ DATA
|
|||
})
|
||||
|
||||
if params[:parser] && !response.body.empty?
|
||||
Nokogiri::XML::SAX::Parser.new(params[:parser]).parse(response.body.split(/<\?xml.*\?>/)[1])
|
||||
Nokogiri::XML::SAX::Parser.new(params[:parser]).parse(response.body)
|
||||
response.body = params[:parser].response
|
||||
end
|
||||
|
||||
|
|
|
@ -333,7 +333,7 @@ module Fog
|
|||
})
|
||||
|
||||
if parser && !response.body.empty?
|
||||
Nokogiri::XML::SAX::Parser.new(parser).parse(response.body.split(/<\?xml.*\?>/)[1])
|
||||
Nokogiri::XML::SAX::Parser.new(parser).parse(response.body)
|
||||
response.body = parser.response
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue