Merge pull request #9828 from nextcloud/gc-s3-list

Fix listing s3 objects when using google cloud aws compatibility
This commit is contained in:
Morris Jobke 2018-06-12 10:39:28 +02:00 committed by GitHub
commit dbd4da2e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}