Make S3 uploader aware of bizarre .gzip extension.

This commit is contained in:
Neil Williams
2011-11-29 16:12:15 -08:00
parent 60f293e8a8
commit 10d19f3140

View File

@@ -6,6 +6,8 @@ import mimetypes
NEVER = 'Thu, 31 Dec 2037 23:59:59 GMT'
mimetypes.encodings_map['.gzip'] = 'gzip'
def upload(static_root, bucket_name):
s3 = boto.connect_s3()
bucket = s3.get_bucket(bucket_name)