summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-11-08 17:50:46 +0100
committerRobin Appelman <robin@icewind.nl>2017-11-15 14:23:43 +0100
commita21f2c2813ae15d1811eb357fbb9a2c3b5769142 (patch)
treefee351927290cd901fa0a0b2670a5a8d672ddf7b
parent2d8d248d284eb9ec88ed354c5751debc98202818 (diff)
downloadnextcloud-server-a21f2c2813ae15d1811eb357fbb9a2c3b5769142.tar.gz
nextcloud-server-a21f2c2813ae15d1811eb357fbb9a2c3b5769142.zip
Fix contructing headers for s3 download
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/ObjectStore/S3ObjectTrait.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index 4bfa08a3e59..63eb562fb16 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -50,9 +50,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
]
];