Permalink
Browse files

Merge pull request #524 from mattotodd/master

Fix for misformed policy when adding a policy url to cloudfront signed url
  • Loading branch information...
garnaat committed Jan 27, 2012
2 parents 51eda05 + 8350a19 commit 8c6dadd9b4aae046e8c92037081fead7f2d117fc
Showing with 4 additions and 3 deletions.
  1. +4 −3 boto/cloudfront/distribution.py
@@ -589,9 +589,10 @@ def _create_signing_params(self, url, keypair_id,
if policy_url is None:
policy_url = url
# Can't use canned policy
- policy = self._custom_policy(policy_url, expires=None,
- valid_after=None,
- ip_address=None)
+ policy = self._custom_policy(policy_url, expires=expire_time,
+ valid_after=valid_after_time,
+ ip_address=ip_address)
+
encoded_policy = self._url_base64_encode(policy)
params["Policy"] = encoded_policy
#sign the policy

0 comments on commit 8c6dadd

Please sign in to comment.