s3cmd
s3cmd copied to clipboard
use v4 auth with CloudFront
This is just a hack that works for me. I don't know Python nor s2cmd good enough to assure that it is fully correct.
Thanks for the attempt. I agree this is a bug; I don't think this is quite the right fix though. I don't understand why we need to change sign_string_v4(). hard-coded region string clearly isn't right.
Sorry for the poor quality of the pull request. Surely, hardcoded region is wrong. One issue with sign_string_v4() is header values with spaces. As to why I take lower case of the header keys, I cannot remember :disappointed: