Skip to content

Commit

Permalink
Merge pull request #33383 from nextcloud/backport/33378/stable23
Browse files Browse the repository at this point in the history
[stable23] don't set `null` as a bundle path
  • Loading branch information
blizzz authored Aug 1, 2022
2 parents 8ac46a6 + db86e92 commit bb94d2c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/private/Files/ObjectStore/S3ObjectTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,14 @@ public function readObject($urn) {
'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();
Expand Down

0 comments on commit bb94d2c

Please sign in to comment.