Fix listing s3 objects when using google cloud aws compatibility
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c923ee7419
commit
47fd3499a3
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ trait S3ConnectionTrait {
|
|||
}
|
||||
}
|
||||
|
||||
// google cloud's s3 compatibility doesn't like the EncodingType parameter
|
||||
if (strpos($base_url, 'storage.googleapis.com')) {
|
||||
$this->connection->getHandlerList()->remove('s3.auto_encode');
|
||||
}
|
||||
|
||||
return $this->connection;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue