S3Sync.net

General Category => Feature Requests => Topic started by: mj on August 29, 2009, 05:15:15 PM



Title: s3sync.rb --headers (modified code attached)
Post by: mj on August 29, 2009, 05:15:15 PM
I wanted to add Content-Encoding:gzip to my s3sync.rb headers, but I didn't see a way to do it, so I modified the code to accept a --headers parameter which accepts arbitrary headers.

Example:
s3sync.rb -r ./testdir/ mybucket: --headers="Content-Encoding:gzip Cache-Control:public Expires:'31 December 2037 23:59:59 GMT' x-amz-acl:public-read"

Please be skeptical of my code, see attached file.