diff options
author | Simon L <szaimen@e.mail.de> | 2022-10-24 20:58:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 20:58:13 +0200 |
commit | 783522390245aab76f7aa0851eda91dd5dce15e1 (patch) | |
tree | 4b0483f8ae977e6979ba112649afd2211527d4f4 /lib | |
parent | 855be71bbd102b6535cd57fce1598e996bd437f9 (diff) | |
parent | 11108e8032191e4a082e8cd249033ea2451e32cf (diff) | |
download | nextcloud-server-783522390245aab76f7aa0851eda91dd5dce15e1.tar.gz nextcloud-server-783522390245aab76f7aa0851eda91dd5dce15e1.zip |
Merge pull request #34756 from nextcloud/revert-33087-fix/30282/external-storages
Revert "fix external storages access"
Diffstat (limited to 'lib')
-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]); |