From 2ad53742f209294eced274366b7b80c17f34d15c Mon Sep 17 00:00:00 2001 From: szaimen Date: Fri, 1 Jul 2022 20:30:35 +0200 Subject: fix external storages access Signed-off-by: szaimen --- lib/private/Http/Client/ClientService.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/private/Http') diff --git a/lib/private/Http/Client/ClientService.php b/lib/private/Http/Client/ClientService.php index e868d4af7a5..8484f2e80e6 100644 --- a/lib/private/Http/Client/ClientService.php +++ b/lib/private/Http/Client/ClientService.php @@ -28,7 +28,6 @@ namespace OC\Http\Client; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\HandlerStack; -use GuzzleHttp\Handler\CurlHandler; use OCP\Http\Client\IClient; use OCP\Http\Client\IClientService; use OCP\ICertificateManager; @@ -63,8 +62,7 @@ class ClientService implements IClientService { * @return Client */ public function newClient(): IClient { - $handler = new CurlHandler(); - $stack = HandlerStack::create($handler); + $stack = HandlerStack::create(); $stack->push($this->dnsPinMiddleware->addDnsPinning()); $client = new GuzzleClient(['handler' => $stack]); -- cgit v1.2.3