summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore/S3ObjectTrait.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-11-08 17:50:46 +0100
committerRobin Appelman <robin@icewind.nl>2017-11-08 17:50:46 +0100
commit70a4860ccbab1c3b851595243fa1c3bfe78f020e (patch)
tree8056b1a80eee422a9507a4da79a142b372a0ba9b /lib/private/Files/ObjectStore/S3ObjectTrait.php
parent497cd7fa4e629d6bb4a279e62b45debb3f47e6b2 (diff)
downloadnextcloud-server-70a4860ccbab1c3b851595243fa1c3bfe78f020e.tar.gz
nextcloud-server-70a4860ccbab1c3b851595243fa1c3bfe78f020e.zip
Fix contructing headers for s3 download
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/ObjectStore/S3ObjectTrait.php')
-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 b418219c29b..9c5cf9ccc6c 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/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
]
];