Skip to content

Commit

Permalink
Fix typo for s3 server side encryption header
Browse files Browse the repository at this point in the history
Fixes #1111
  • Loading branch information
jamesls committed Nov 14, 2012
1 parent 093dfa8 commit 835245d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boto/s3/connection.py
Expand Up @@ -291,9 +291,9 @@ def build_post_form_args(self, bucket_name, key, expires_in=6000,
conditions.append('{"x-amz-storage-class": "%s"}' % storage_class)

if server_side_encryption:
fields.append({'name': 'x-azm-server-side-encryption',
fields.append({'name': 'x-amz-server-side-encryption',
'value': server_side_encryption})
conditions.append('{"x-azm-server-side-encryption": "%s"}' % server_side_encryption)
conditions.append('{"x-amz-server-side-encryption": "%s"}' % server_side_encryption)

policy = self.build_post_policy(expiration, conditions)

Expand Down

0 comments on commit 835245d

Please sign in to comment.