1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge branch 'master' of github.com:fog/fog

This commit is contained in:
Kevin Menard 2012-02-08 13:22:57 -05:00
commit 694d7ea9f7

View file

@ -62,13 +62,11 @@ module Fog
if source_object && target_bucket
response.status = 200
target_object = source_object.dup
target_object.each do |version|
version.merge!({'Key' => target_object_name})
end
target_bucket[:objects][target_object_name] = target_object
target_object.merge!({'Key' => target_object_name})
target_bucket[:objects][target_object_name] = [target_object]
response.body = {
'ETag' => target_object.last['ETag'],
'LastModified' => Time.parse(target_object.last['Last-Modified'])
'ETag' => target_object['ETag'],
'LastModified' => Time.parse(target_object['Last-Modified'])
}
else
response.status = 404