summaryrefslogtreecommitdiff
path: root/boto/auth.py
diff options
context:
space:
mode:
authorSteve Jones <steve.jones@eucalyptus.com>2013-06-06 16:19:25 -0700
committerDaniel Lindsley <daniel@toastdriven.com>2013-06-07 21:17:12 -0700
commitdec541f7e56506342394e466fa6e9d9805dd77fb (patch)
tree4def488b4b6e1fbf56fd33d8f120771a580d11b1 /boto/auth.py
parentbe07f7a3304ceb7b85c2b5e4231f54c3914ea6c5 (diff)
downloadboto-dec541f7e56506342394e466fa6e9d9805dd77fb.tar.gz
Preserve trailing / when canonicalizing URI path for signature V4
Diffstat (limited to 'boto/auth.py')
-rw-r--r--boto/auth.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/boto/auth.py b/boto/auth.py
index cd7ac68f..80377fc3 100644
--- a/boto/auth.py
+++ b/boto/auth.py
@@ -388,6 +388,8 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
normalized = posixpath.normpath(http_request.auth_path)
# Then urlencode whatever's left.
encoded = urllib.quote(normalized)
+ if http_request.auth_path.endswith('/'):
+ encoded = encoded + '/'
return encoded
def payload(self, http_request):