Add signature_version to SetSpace

I was using this package and I discovered that I couldn't create a new space on DigitalOcean. I kept getting the "XAmzContentSHA256Mismatch" error. Until i added this line. This fixes the issue.
This commit is contained in:
Alessandro Aussems 2018-11-21 15:36:26 +01:00 committed by GitHub
parent 22880123ef
commit 8e68a5c676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,8 @@ class SpacesConnect {
'key' => $this->access_key,
'secret' => $this->secret_key,
),
'bucket_endpoint' => true
'bucket_endpoint' => true,
'signature_version' => 'v4-unsigned-body'
));
return $this->ObjReturn(true);
} catch (\Exception $e) {