diff options
author | Ahmed <ahlinux@yahoo.com> | 2013-07-19 01:40:18 -0700 |
---|---|---|
committer | Daniel G. Taylor <danielgtaylor@gmail.com> | 2013-07-22 17:09:11 -0700 |
commit | a1fa98c93de565e443060b63d952dc74b8b5f025 (patch) | |
tree | ec27b5bcdcdeeb20273662944ba082d5a581e7b2 /boto/auth.py | |
parent | 7a7b2f4c4227fa96194e435ef756086a4e0bb138 (diff) | |
download | boto-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.py | 5 |
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('/'): |