Skip to content

Commit 87cbbb1

Browse files
author
Ahmad Fikrizaman Bin Abd Rahim
committed
update stream
1 parent 6703cf6 commit 87cbbb1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function download(array $options)
237237
'headers' => [
238238
'Authorization' => $this->authToken,
239239
],
240-
'sink' => isset($options['SaveAs']) ? $options['SaveAs'] : null,
240+
'sink' => isset($options['SaveAs']) ? $options['SaveAs'] : fopen('php://stdout', 'w'),
241241
];
242242

243243
if (isset($options['FileId'])) {

src/Http/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function request($method, $uri = null, array $options = [], $asJson = tru
5050
return $response->getBody();
5151
}
5252

53-
return $response->getBody()->getContents();
53+
return $response->getBody();
54+
// return $response->getBody()->getContents();
5455
}
5556
}

0 commit comments

Comments
 (0)