Skip to content

Commit ba3e314

Browse files
author
Ahmad Fikrizaman Bin Abd Rahim
committed
return accel-redirect data
1 parent dbcab67 commit ba3e314

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Client.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,17 @@ public function download(array $options)
261261
return isset($options['SaveAs']) ? true : $response;
262262
}
263263

264+
public function accelRedirectData(array $options)
265+
{
266+
$parsed = parse_url($this->downloadUrl);
267+
268+
return [
269+
'Authorization' => $this->authToken,
270+
'host' => $parsed['host'],
271+
'query' => sprintf("FileId=%s", $options['FileId']),
272+
];
273+
}
274+
264275
/**
265276
* Retrieve a collection of File objects representing the files stored inside a bucket.
266277
*

0 commit comments

Comments
 (0)