Skip to content

Commit

Permalink
TASK: Make getImportStream() use fopen in b mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns authored Feb 27, 2020
1 parent 72d2472 commit dae2900
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 dae2900

Please sign in to comment.