Skip to content

Commit c488194

Browse files
authored
Merge pull request #1877 from jegelkraut/3.x
Fix: Make fetching metaData and the download and response functions work with SSE-C in AwsS3V3
2 parents cb894cc + 3ee4377 commit c488194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AwsS3V3/AwsS3V3Adapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ public function visibility(string $path): FileAttributes
286286

287287
private function fetchFileMetadata(string $path, string $type): FileAttributes
288288
{
289-
$arguments = ['Bucket' => $this->bucket, 'Key' => $this->prefixer->prefixPath($path)];
290-
$command = $this->client->getCommand('HeadObject', $arguments);
289+
$options = ['Bucket' => $this->bucket, 'Key' => $this->prefixer->prefixPath($path)];
290+
$command = $this->client->getCommand('HeadObject', $options + $this->options);
291291

292292
try {
293293
$result = $this->client->execute($command);

0 commit comments

Comments
 (0)