diff options
author | Robin Appelman <robin@icewind.nl> | 2017-11-08 17:50:46 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-11-08 17:50:46 +0100 |
commit | 70a4860ccbab1c3b851595243fa1c3bfe78f020e (patch) | |
tree | 8056b1a80eee422a9507a4da79a142b372a0ba9b /lib/private/Files/ObjectStore/S3ObjectTrait.php | |
parent | 497cd7fa4e629d6bb4a279e62b45debb3f47e6b2 (diff) | |
download | nextcloud-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.php | 8 |
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 ] ]; |