Fix contructing headers for s3 download

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/7113/head
Robin Appelman 9 years ago
parent 497cd7fa4e
commit 70a4860ccb
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
  1. 8
      lib/private/Files/ObjectStore/S3ObjectTrait.php

@ -52,9 +52,15 @@ trait S3ObjectTrait {
'Key' => $urn
]);
$request = \Aws\serialize($command);
$headers = [];
foreach ($request->getHeaders() as $key => $values) {
foreach ($values as $value) {
$headers[] = "$key: $value";
}
}
$opts = [
'http' => [
'header' => $request->getHeaders()
'header' => $headers
]
];

Loading…
Cancel
Save