Skip to content

Commit

Permalink
Fixed #53
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Jun 22, 2022
1 parent ebfbd20 commit 4aad39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QiniuAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function getUrl($path)
*/
public function read($path)
{
$contents = file_get_contents($this->getUrl($path));
$contents = file_get_contents($this->privateDownloadUrl($path));

return compact('contents', 'path');
}
Expand All @@ -295,7 +295,7 @@ public function read($path)
public function readStream($path)
{
if (ini_get('allow_url_fopen')) {
$stream = fopen($this->getUrl($path), 'r');
$stream = fopen($this->privateDownloadUrl($path), 'r');

return compact('stream', 'path');
}
Expand Down

0 comments on commit 4aad39d

Please sign in to comment.