Skip to content

Commit

Permalink
fix: Fixed local CDN gif bepass
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Feb 20, 2019
1 parent f00c455 commit ba50f4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Cdn/Adapter/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public function url(string $filename, array $extra = []): string
{
if ($this->files->exists($filename) === false) {
throw new \Exception("Unable to find a file at path [{$filename}].");
} elseif (app('files')->extension($filename) === 'gif' && empty($extra)) {
return $this->makeUrl($filename);
}

return $this->validateImageAnd($filename, function (string $filename) use ($extra) {
Expand Down

0 comments on commit ba50f4d

Please sign in to comment.