From 7c930820a1673ebd1eabd6ce01e6e143708b730c Mon Sep 17 00:00:00 2001 From: Tal Yalon Date: Tue, 3 May 2011 12:23:01 +0300 Subject: [PATCH] Issue #283: S3 get_object request doesn't really support the Range header Always expecting 200 or 206 now in S3 GetObject. --- lib/fog/storage/requests/aws/get_object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/storage/requests/aws/get_object.rb b/lib/fog/storage/requests/aws/get_object.rb index 3d87e973a..7452a54e0 100644 --- a/lib/fog/storage/requests/aws/get_object.rb +++ b/lib/fog/storage/requests/aws/get_object.rb @@ -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,