Skip to content

Commit

Permalink
Merge pull request #4 from kdambekalns/patch-2
Browse files Browse the repository at this point in the history
TASK: Make getImportStream() use fopen in b mode
  • Loading branch information
daniellienert authored Feb 27, 2020
2 parents 72d2472 + dae2900 commit b307e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/AssetSource/UnsplashAssetProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function getPreviewUri(): ?UriInterface
*/
public function getImportStream()
{
return fopen($this->photo->download(), 'r');
return fopen($this->photo->download(), 'rb');
}

/**
Expand Down

0 comments on commit b307e37

Please sign in to comment.