mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Issue #283: S3 get_object request doesn't really support the Range header
Always expecting 200 or 206 now in S3 GetObject.
This commit is contained in:
parent
d88547799c
commit
7c930820a1
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 => headers.include?('Range') ? [ 200, 206 ] : 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