mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #286 from yalon/master.
Fix for issue #283: S3 get_object request doesn't really support the Range header
This commit is contained in:
commit
d854216d0f
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module Fog
|
||||||
headers['If-Unmodified-Since'] = Fog::Time.at(options['If-Unmodified-Since'].to_i).to_date_header if options['If-Modified-Since']
|
headers['If-Unmodified-Since'] = Fog::Time.at(options['If-Unmodified-Since'].to_i).to_date_header if options['If-Modified-Since']
|
||||||
headers.merge!(options)
|
headers.merge!(options)
|
||||||
request({
|
request({
|
||||||
:expects => 200,
|
:expects => [ 200, 206 ],
|
||||||
:headers => headers,
|
:headers => headers,
|
||||||
:host => "#{bucket_name}.#{@host}",
|
:host => "#{bucket_name}.#{@host}",
|
||||||
:idempotent => true,
|
:idempotent => true,
|
||||||
|
|
Loading…
Reference in a new issue