Skip to content

Commit 78f8cff

Browse files
authored
Change the getter to retrieve public URL by default
1 parent a58f549 commit 78f8cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Filesystem/FilesystemAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function url($path)
349349
*/
350350
protected function getRackspaceUrl($adapter, $path)
351351
{
352-
return (string) $adapter->getContainer()->getObject($path)->getUrl();
352+
return (string) $adapter->getContainer()->getObject($path)->getPublicUrl();
353353
}
354354

355355
/**
@@ -437,7 +437,7 @@ public function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
437437
->getTemporaryUrl(
438438
$seconds,
439439
isset($options['method']) ? $options['method'] : 'GET',
440-
isset($options['forcePublicUrl']) ? $options['forcePublicUrl'] : false);
440+
isset($options['forcePublicUrl']) ? $options['forcePublicUrl'] : true);
441441
}
442442

443443
/**

0 commit comments

Comments
 (0)