1
0
Fork 0
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:
Wesley Beary 2011-05-03 08:56:22 -07:00
commit d854216d0f

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 => 200,
:expects => [ 200, 206 ],
:headers => headers,
:host => "#{bucket_name}.#{@host}",
:idempotent => true,