Merge remote-tracking branch 'refs/remotes/origin/master' into arindam-bug-priority
This commit is contained in:
18
vendor/aws/aws-sdk-php/src/S3/S3Client.php
vendored
18
vendor/aws/aws-sdk-php/src/S3/S3Client.php
vendored
@@ -176,8 +176,7 @@ class S3Client extends AwsClient implements S3ClientInterface
|
||||
'doc' => 'Set to true to send requests to an S3 Dual Stack'
|
||||
. ' endpoint by default, which enables IPv6 Protocol.'
|
||||
. ' Can be enabled or disabled on individual operations by setting'
|
||||
. ' \'@use_dual_stack_endpoint\' to true or false. Note:'
|
||||
. ' you cannot use it together with an accelerate endpoint.',
|
||||
. ' \'@use_dual_stack_endpoint\' to true or false.',
|
||||
'default' => false,
|
||||
],
|
||||
];
|
||||
@@ -219,17 +218,18 @@ class S3Client extends AwsClient implements S3ClientInterface
|
||||
Middleware::contentType(['PutObject', 'UploadPart']),
|
||||
's3.content_type'
|
||||
);
|
||||
|
||||
$stack->appendBuild(
|
||||
AccelerateMiddleware::wrap($this->getConfig('use_accelerate_endpoint')),
|
||||
's3.use_accelerate_endpoint'
|
||||
);
|
||||
$stack->appendBuild(
|
||||
DualStackMiddleware::wrap(
|
||||
S3EndpointMiddleware::wrap(
|
||||
$this->getRegion(),
|
||||
$this->getConfig('use_dual_stack_endpoint')
|
||||
[
|
||||
'dual_stack' => $this->getConfig('use_dual_stack_endpoint'),
|
||||
'accelerate' => $this->getConfig('use_accelerate_endpoint')
|
||||
]
|
||||
),
|
||||
's3.use_dual_stack_endpoint'
|
||||
's3.endpoint_middleware'
|
||||
);
|
||||
|
||||
// Use the bucket style middleware when using a "bucket_endpoint" (for cnames)
|
||||
if ($this->getConfig('bucket_endpoint')) {
|
||||
$stack->appendBuild(BucketEndpointMiddleware::wrap(), 's3.bucket_endpoint');
|
||||
|
||||
Reference in New Issue
Block a user