mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #9828 from nextcloud/gc-s3-list
Fix listing s3 objects when using google cloud aws compatibility
This commit is contained in:
commit
dbd4da2e91
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