summaryrefslogtreecommitdiff
path: root/boto/auth.py
diff options
context:
space:
mode:
authorAhmed <ahlinux@yahoo.com>2013-07-19 01:40:18 -0700
committerDaniel G. Taylor <danielgtaylor@gmail.com>2013-07-22 17:09:11 -0700
commita1fa98c93de565e443060b63d952dc74b8b5f025 (patch)
treeec27b5bcdcdeeb20273662944ba082d5a581e7b2 /boto/auth.py
parent7a7b2f4c4227fa96194e435ef756086a4e0bb138 (diff)
downloadboto-a1fa98c93de565e443060b63d952dc74b8b5f025.tar.gz
normpath in window
normpath in windows used backslashes '\' instead of '/' which cause dynamodb connection to fail Conflicts: boto/auth.py
Diffstat (limited to 'boto/auth.py')
-rw-r--r--boto/auth.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/boto/auth.py b/boto/auth.py
index 0aa299f9..02de5e1e 100644
--- a/boto/auth.py
+++ b/boto/auth.py
@@ -385,8 +385,9 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
def canonical_uri(self, http_request):
path = http_request.auth_path
- # Normalize the path.
- normalized = posixpath.normpath(path)
+ # Normalize the path
+ # in windows normpath('/') will be '\\' so we chane it back to '/'
+ normalized = posixpath.normpath(path).replace('\\','/')
# Then urlencode whatever's left.
encoded = urllib.quote(normalized)
if len(path) > 1 and path.endswith('/'):