python-requests-aws icon indicating copy to clipboard operation
python-requests-aws copied to clipboard

does not work with path style requests

Open danielduduta opened this issue 10 years ago • 1 comments

Hi, It doesn't seem to work with path-style requests: e.g. https://s3-eu-west-1.amazonaws.com/my_bucket.name/a1_v1.jpg

It seems to think 's3-eu-west' is the bucket.

danielduduta avatar Oct 28 '14 16:10 danielduduta

Hi @danielduduta ,

Thanks for reporting this, sorry for the late reply I'm fairly busy but I will try to create a fix for this. Are you using this url for a put request or for another type of request?

Not sure what the best way is to detect path-style urls maybe via an extra param path_style to the constructor:

S3Auth(self, access_key, secret_key, service_url=None, path_style=False)

Do you have any thoughts or suggestions on this?

tax avatar Nov 04 '14 19:11 tax