mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #33382 from nextcloud/backport/33378/stable24
[stable24] don't set `null` as a bundle path
This commit is contained in:
commit
e70ffdf556
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