Skip to content

Commit

Permalink
fix: getTemporaryUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
freyo committed Jul 27, 2018
1 parent 2120407 commit 065091d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Adapter.php
Expand Up @@ -79,8 +79,13 @@ public function getTemporaryUrl($path, DateTimeInterface $expiration, array $opt
);

$response = $this->normalizeResponse($response);

if (false !== $response) {
$url = parse_url($response['access_url']);
return $this->getUrl($url['path']).'?'.$url['query'];
}

return isset($response['access_url']) ? $response['access_url'] : false;
return $response;
}

/**
Expand Down

0 comments on commit 065091d

Please sign in to comment.