Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-11-08 19:50:46 +0300
committerRobin Appelman <robin@icewind.nl>2017-11-08 19:50:46 +0300
commit70a4860ccbab1c3b851595243fa1c3bfe78f020e (patch)
tree8056b1a80eee422a9507a4da79a142b372a0ba9b
parent497cd7fa4e629d6bb4a279e62b45debb3f47e6b2 (diff)
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 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
]
];