composer update
This commit is contained in:
@@ -40,6 +40,11 @@ use Aws\Exception\UnresolvedSignatureException;
|
||||
*/
|
||||
class SignatureProvider
|
||||
{
|
||||
private static $s3v4SignedServices = [
|
||||
's3' => true,
|
||||
's3control' => true,
|
||||
];
|
||||
|
||||
/**
|
||||
* Resolves and signature provider and ensures a non-null return value.
|
||||
*
|
||||
@@ -111,7 +116,7 @@ class SignatureProvider
|
||||
switch ($version) {
|
||||
case 's3v4':
|
||||
case 'v4':
|
||||
return $service === 's3'
|
||||
return !empty(self::$s3v4SignedServices[$service])
|
||||
? new S3SignatureV4($service, $region)
|
||||
: new SignatureV4($service, $region);
|
||||
case 'v4-unsigned-body':
|
||||
|
Reference in New Issue
Block a user