diff --git a/lib/fog/aws/models/storage/file.rb b/lib/fog/aws/models/storage/file.rb index 4711bcbed..9ce53a0c2 100644 --- a/lib/fog/aws/models/storage/file.rb +++ b/lib/fog/aws/models/storage/file.rb @@ -281,7 +281,7 @@ def save(options = {}) merge_attributes(data.body) else data = service.put_object(directory.key, key, body, options) - merge_attributes(data.headers.reject {|key, value| ['Content-Length', 'Content-Type'].include?(key)}) + merge_attributes(data.headers.reject {|key, value| ['Connection', 'Content-Length', 'Content-Type'].include?(key)}) end self.etag = self.etag.gsub('"','') if self.etag self.content_length = Fog::Storage.get_body_size(body)