aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-11-01 21:05:36 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-03 00:13:01 +0100
commit54b9f639a6cec14236f432c9907edb18d323d94d (patch)
tree712c0f6c7386edd726a464e3f38a99bfed95c278 /lib/private/Http/Client
parentdc479aae2d055dafddb250a382eb801a68d42afb (diff)
downloadnextcloud-server-54b9f639a6cec14236f432c9907edb18d323d94d.tar.gz
nextcloud-server-54b9f639a6cec14236f432c9907edb18d323d94d.zip
Always return the default path if we can
Just check in the certifcate manager. So every part of the system that request the certificatebundle gets the defaullt one (the 99% case) if we can. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Http/Client')
-rw-r--r--lib/private/Http/Client/Client.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php
index 35171810a68..5ac29afe31d 100644
--- a/lib/private/Http/Client/Client.php
+++ b/lib/private/Http/Client/Client.php
@@ -105,10 +105,6 @@ class Client implements IClient {
return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
}
- if ($this->certificateManager->listCertificates() === []) {
- return \OC::$SERVERROOT . '/resources/config/ca-bundle.crt';
- }
-
return $this->certificateManager->getAbsoluteBundlePath();
}