]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix external storages access 34750/head
authorszaimen <szaimen@e.mail.de>
Fri, 1 Jul 2022 18:30:35 +0000 (20:30 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Sun, 23 Oct 2022 09:32:55 +0000 (09:32 +0000)
Signed-off-by: szaimen <szaimen@e.mail.de>
lib/private/Http/Client/ClientService.php
tests/lib/Http/Client/ClientServiceTest.php

index e868d4af7a5223dc406ea6a8d2efca3c6c168dfa..8484f2e80e6d53c9e0e4924711e8289d44e26696 100644 (file)
@@ -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]);
index 94f4d51ecee8d59c26b2f6f97f75bb8fb6ccf86c..395e67261315f823000beadf3fb7f27761650ab4 100644 (file)
@@ -10,7 +10,6 @@ namespace Test\Http\Client;
 
 use GuzzleHttp\Client as GuzzleClient;
 use GuzzleHttp\HandlerStack;
-use GuzzleHttp\Handler\CurlHandler;
 use OC\Http\Client\Client;
 use OC\Http\Client\ClientService;
 use OC\Http\Client\DnsPinMiddleware;
@@ -42,8 +41,7 @@ class ClientServiceTest extends \Test\TestCase {
                        $localAddressChecker
                );
 
-               $handler = new CurlHandler();
-               $stack = HandlerStack::create($handler);
+               $stack = HandlerStack::create();
                $stack->push($dnsPinMiddleware->addDnsPinning());
                $guzzleClient = new GuzzleClient(['handler' => $stack]);