1
0
Fork 0
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:
Tal Yalon 2011-05-03 12:23:01 +03:00
parent d88547799c
commit 7c930820a1

View file

@ -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.merge!(options)
request({
:expects => headers.include?('Range') ? [ 200, 206 ] : 200,
:expects => [ 200, 206 ],
:headers => headers,
:host => "#{bucket_name}.#{@host}",
:idempotent => true,