Fix listing s3 objects when using google cloud aws compatibility

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-06-11 17:10:57 +02:00
parent c923ee7419
commit 47fd3499a3
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 5 additions and 0 deletions

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