Created
May 22, 2010 08:48
-
-
Save sumikawa/409931 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- s3sync.rb- 2010-05-22 17:39:32.000000000 +0900 | |
+++ s3sync.rb 2010-05-22 17:40:59.000000000 +0900 | |
@@ -505,6 +505,7 @@ | |
headers['x-amz-acl'] = 'public-read' if $S3syncOptions['--public-read'] | |
headers['Expires'] = $S3syncOptions['--expires'] if $S3syncOptions['--expires'] | |
headers['Cache-Control'] = $S3syncOptions['--cache-control'] if $S3syncOptions['--cache-control'] | |
+ headers['x-amz-storage-class'] = 'REDUCED_REDUNDANCY' | |
fType = @path.split('.').last | |
debug("File extension: #{fType}") | |
if defined?($mimeTypes) and fType != '' and (mType = $mimeTypes[fType]) and mType != '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment