twisted / txaws

Twisted-based Asynchronous Libraries for Amazon Web Services and clouds that support the AWS APIs
MIT License
32 stars 18 forks source link

S3 client cannot retrieve objects for keys starting with / #75

Open exarkun opened 7 years ago

exarkun commented 7 years ago
>>> s3_url_context(AWSServiceEndpoint("http://foo/"), bucket="bar", object_name="baz").get_encoded_url()
'http://foo/bar/baz'
>>> s3_url_context(AWSServiceEndpoint("http://foo/"), bucket="bar", object_name="/baz").get_encoded_url()
'http://foo/bar/baz'
>>> s3_url_context(AWSServiceEndpoint("http://foo/"), bucket="bar", object_name="//baz").get_encoded_url()
'http://foo/bar//baz'
>>>