diff options
author | Simon L <szaimen@e.mail.de> | 2022-10-23 21:57:16 +0200 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2022-10-23 22:36:34 +0200 |
commit | 11108e8032191e4a082e8cd249033ea2451e32cf (patch) | |
tree | 14240bc2214df5a302b1ac5e715091f103594468 /lib/private/Http | |
parent | 304c1b9b61b20dfa3c1f07e8a914f0661d91704d (diff) | |
download | nextcloud-server-11108e8032191e4a082e8cd249033ea2451e32cf.tar.gz nextcloud-server-11108e8032191e4a082e8cd249033ea2451e32cf.zip |
Revert "fix external storages access"
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'lib/private/Http')
-rw-r--r-- | lib/private/Http/Client/ClientService.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Http/Client/ClientService.php b/lib/private/Http/Client/ClientService.php index 8484f2e80e6..e868d4af7a5 100644 --- a/lib/private/Http/Client/ClientService.php +++ b/lib/private/Http/Client/ClientService.php @@ -28,6 +28,7 @@ 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; @@ -62,7 +63,8 @@ class ClientService implements IClientService { * @return Client */ public function newClient(): IClient { - $stack = HandlerStack::create(); + $handler = new CurlHandler(); + $stack = HandlerStack::create($handler); $stack->push($this->dnsPinMiddleware->addDnsPinning()); $client = new GuzzleClient(['handler' => $stack]); |