rumblelabs/asset_sync — comment on commit 76618419867417b48e05aa5531f1b8c2890f5e72
File: lib/asset_sync/storage.rb line 76
By davidjrice:

Yeah, am going to try that, was looking at where fog turns options into headers in `aws/models/storage/file.rb`. The way I was trying obviously doesn't work :)

https://github.com/geemus/fog/blob/master/lib/fog/aws/models/storage/file.rb

Because fog is doing this kind of thing, led me to doing it that way.

options['Content-Type'] = content_type if content_type
options['Expires'] = expires if expires
options.merge!(metadata)

Am thinking it might require a patch to fog to handle the "Vary" attribute.