Skip to content

Commit

Permalink
avoid merging connection value from headers when saving files (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus authored Sep 15, 2024
1 parent 1f38afb commit 0118186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/aws/models/storage/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0118186

Please sign in to comment.