tpyo / amazon-s3-php-class

A standalone Amazon S3 (REST) client for PHP 5/CURL
1.03k stars 503 forks source link

SignatureDoesNotMatch error #157

Open t0mmy9 opened 5 years ago

t0mmy9 commented 5 years ago

I am using a custom S3 provider and kept getting back a 403 SignatureDoesNotMatch error from every function I tried to use. After a bit of trial and error it turns out that this was down to empty headers added in the "__getSignatureV4" function.

Adding the following couple of lines has fixed it for me: https://www.diffchecker.com/GRzuu6gj

Now everything works perfectly, thank you for this great class!

mr-smit commented 4 years ago

thanks

reina-n commented 4 years ago

wow... it works on minio!