diff options
author | Mitch.Garnaat <Mitch.Garnaat@604d75c7-a419-0410-a38f-bde1a0bd1dbf> | 2009-06-24 03:18:11 +0000 |
---|---|---|
committer | Mitch.Garnaat <Mitch.Garnaat@604d75c7-a419-0410-a38f-bde1a0bd1dbf> | 2009-06-24 03:18:11 +0000 |
commit | 2fcc60142e51862dbd24db31901316f7d35bdfe0 (patch) | |
tree | 04be7ba673e35afa9f3c37f510b5e43e98bb902a | |
parent | 0e8fdb5f86756abc701ae400e3bd9c8070caeb20 (diff) | |
download | boto-2fcc60142e51862dbd24db31901316f7d35bdfe0.tar.gz |
Fixing an issue with S3 requests and new get_path method.
-rw-r--r-- | boto/connection.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boto/connection.py b/boto/connection.py index cabf2e67..e8382bd0 100644 --- a/boto/connection.py +++ b/boto/connection.py @@ -181,7 +181,10 @@ class AWSAuthConnection: path_elements = self.path.split('/') path_elements.extend(path.split('/')) path_elements = [p for p in path_elements if p] - return '/' + '/'.join(path_elements) + path = '/' + '/'.join(path_elements) + if path[-1] != '/' and path.find('?') < 0: + path += '/' + return path def server_name(self): if self.port == 80: |