diff --git a/lib/fog/rackspace/models/storage/file.rb b/lib/fog/rackspace/models/storage/file.rb index 9ec2f2fe9..5e0826c2a 100644 --- a/lib/fog/rackspace/models/storage/file.rb +++ b/lib/fog/rackspace/models/storage/file.rb @@ -31,7 +31,8 @@ module Fog def copy(target_directory_key, target_file_key, options={}) requires :directory, :key - connection.copy_object(directory.key, key, target_directory_key, target_file_key) + options['Content-Type'] ||= content_type if content_type + connection.copy_object(directory.key, key, target_directory_key, target_file_key, options) target_directory = connection.directories.new(:key => target_directory_key) target_directory.files.get(target_file_key) end