Fix contructing headers for s3 download
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2d8d248d28
commit
a21f2c2813
|
@ -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
|
||||
]
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue