From 8e68a5c6765395bf6216b943782f6e4526cf80fd Mon Sep 17 00:00:00 2001 From: Alessandro Aussems Date: Wed, 21 Nov 2018 15:36:26 +0100 Subject: [PATCH] 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. --- spaces.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spaces.php b/spaces.php index 818f238..f46b8f9 100644 --- a/spaces.php +++ b/spaces.php @@ -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) {