Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix malformed policy issue

  • Loading branch information...
commit 8350a19f11bf7c3f245de9e46a3a53e6db3a8261 1 parent 4719049
unknown authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 boto/cloudfront/distribution.py
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.