mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
idempotent get requests to s3
This commit is contained in:
parent
e11a1eba13
commit
276a32b7a3
5 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,7 @@ unless Fog.mocking?
|
|||
:expects => 200,
|
||||
:headers => {},
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:idempotent => true,
|
||||
:method => 'GET',
|
||||
:parser => Fog::Parsers::AWS::S3::GetBucket.new,
|
||||
:query => query
|
||||
|
|
|
@ -18,6 +18,7 @@ unless Fog.mocking?
|
|||
:expects => 200,
|
||||
:headers => {},
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:idempotent => true,
|
||||
:method => 'GET',
|
||||
:parser => Fog::Parsers::AWS::S3::GetBucketLocation.new,
|
||||
:query => 'location'
|
||||
|
|
|
@ -38,6 +38,7 @@ unless Fog.mocking?
|
|||
:expects => 200,
|
||||
:headers => headers,
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:idempotent => true,
|
||||
:method => 'GET',
|
||||
:path => CGI.escape(object_name),
|
||||
:block => block
|
||||
|
|
|
@ -18,6 +18,7 @@ unless Fog.mocking?
|
|||
:expects => 200,
|
||||
:headers => {},
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:idempotent => true,
|
||||
:method => 'GET',
|
||||
:parser => Fog::Parsers::AWS::S3::GetRequestPayment.new,
|
||||
:query => 'requestPayment'
|
||||
|
|
|
@ -20,6 +20,7 @@ unless Fog.mocking?
|
|||
:expects => 200,
|
||||
:headers => {},
|
||||
:host => @host,
|
||||
:idempotent => true,
|
||||
:method => 'GET',
|
||||
:parser => Fog::Parsers::AWS::S3::GetService.new,
|
||||
:url => @host
|
||||
|
|
Loading…
Add table
Reference in a new issue