Fix contructing headers for s3 download
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
497cd7fa4e
commit
70a4860ccb
|
@ -52,9 +52,15 @@ trait S3ObjectTrait {
|
||||||
'Key' => $urn
|
'Key' => $urn
|
||||||
]);
|
]);
|
||||||
$request = \Aws\serialize($command);
|
$request = \Aws\serialize($command);
|
||||||
|
$headers = [];
|
||||||
|
foreach ($request->getHeaders() as $key => $values) {
|
||||||
|
foreach ($values as $value) {
|
||||||
|
$headers[] = "$key: $value";
|
||||||
|
}
|
||||||
|
}
|
||||||
$opts = [
|
$opts = [
|
||||||
'http' => [
|
'http' => [
|
||||||
'header' => $request->getHeaders()
|
'header' => $headers
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue