diff --git a/lib/fog/rackspace/files.rb b/lib/fog/rackspace/files.rb index 95a5270a1..6e544a8f5 100644 --- a/lib/fog/rackspace/files.rb +++ b/lib/fog/rackspace/files.rb @@ -56,7 +56,7 @@ module Fog :expects => params[:expects], :headers => { 'X-Auth-Token' => @auth_token - }, + }.merge!(params[:headers] || {}), :host => @cdn_host, :method => params[:method], :path => "#{@cdn_path}/#{params[:path]}", @@ -74,7 +74,7 @@ module Fog :expects => params[:expects], :headers => { 'X-Auth-Token' => @auth_token - }, + }.merge!(params[:headers] || {}), :host => @storage_host, :method => params[:method], :path => "#{@storage_path}/#{params[:path]}", diff --git a/spec/rackspace/requests/files/put_object_spec.rb b/spec/rackspace/requests/files/put_object_spec.rb index ab37543b3..7e1eaaeb0 100644 --- a/spec/rackspace/requests/files/put_object_spec.rb +++ b/spec/rackspace/requests/files/put_object_spec.rb @@ -8,7 +8,7 @@ describe 'Rackspace::Files.put_object' do end after(:each) do - files.delete_object('object_name') + files.delete_object('container_name', 'object_name') files.delete_container('container_name') end