python-requests-aws
python-requests-aws copied to clipboard
does not work with path style requests
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.
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?