summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch.Garnaat <Mitch.Garnaat@604d75c7-a419-0410-a38f-bde1a0bd1dbf>2009-06-24 03:18:11 +0000
committerMitch.Garnaat <Mitch.Garnaat@604d75c7-a419-0410-a38f-bde1a0bd1dbf>2009-06-24 03:18:11 +0000
commit2fcc60142e51862dbd24db31901316f7d35bdfe0 (patch)
tree04be7ba673e35afa9f3c37f510b5e43e98bb902a
parent0e8fdb5f86756abc701ae400e3bd9c8070caeb20 (diff)
downloadboto-2fcc60142e51862dbd24db31901316f7d35bdfe0.tar.gz
Fixing an issue with S3 requests and new get_path method.
-rw-r--r--boto/connection.py5
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: