mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 10:49:21 -04:00
Merge pull request #33383 from nextcloud/backport/33378/stable23
[stable23] don't set `null` as a bundle path
This commit is contained in:
commit
bb94d2c191
1 changed files with 6 additions and 3 deletions
|
|
@ -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 a new issue