aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Http
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-10-23 21:57:16 +0200
committerszaimen <szaimen@e.mail.de>2022-10-23 22:36:34 +0200
commit11108e8032191e4a082e8cd249033ea2451e32cf (patch)
tree14240bc2214df5a302b1ac5e715091f103594468 /tests/lib/Http
parent304c1b9b61b20dfa3c1f07e8a914f0661d91704d (diff)
downloadnextcloud-server-11108e8032191e4a082e8cd249033ea2451e32cf.tar.gz
nextcloud-server-11108e8032191e4a082e8cd249033ea2451e32cf.zip
Revert "fix external storages access"
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'tests/lib/Http')
-rw-r--r--tests/lib/Http/Client/ClientServiceTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Http/Client/ClientServiceTest.php b/tests/lib/Http/Client/ClientServiceTest.php
index 395e6726131..94f4d51ecee 100644
--- a/tests/lib/Http/Client/ClientServiceTest.php
+++ b/tests/lib/Http/Client/ClientServiceTest.php
@@ -10,6 +10,7 @@ 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;
@@ -41,7 +42,8 @@ class ClientServiceTest extends \Test\TestCase {
$localAddressChecker
);
- $stack = HandlerStack::create();
+ $handler = new CurlHandler();
+ $stack = HandlerStack::create($handler);
$stack->push($dnsPinMiddleware->addDnsPinning());
$guzzleClient = new GuzzleClient(['handler' => $stack]);