From 01181865406ce87377ca43af26c53a418c2f77bc Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Sun, 15 Sep 2024 14:02:44 -0500 Subject: [PATCH] avoid merging connection value from headers when saving files (#725) --- lib/fog/aws/models/storage/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)