mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Merge pull request #33378 from nextcloud/s3-no-null-bundle
don't set `null` as a bundle path
This commit is contained in:
commit
d24823bda5
@ -69,11 +69,14 @@ trait S3ObjectTrait {
|
||||
'http' => [
|
||||
'protocol_version' => $request->getProtocolVersion(),
|
||||
'header' => $headers,
|
||||
],
|
||||
'ssl' => [
|
||||
'cafile' => $this->getCertificateBundlePath()
|
||||
]
|
||||
];
|
||||
$bundle = $this->getCertificateBundlePath();
|
||||
if ($bundle) {
|
||||
$opts['ssl'] = [
|
||||
'cafile' => $bundle
|
||||
];
|
||||
}
|
||||
|
||||
if ($this->getProxy()) {
|
||||
$opts['http']['proxy'] = $this->getProxy();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user