summaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/ClientService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Http/Client/ClientService.php')
-rw-r--r--lib/private/Http/Client/ClientService.php4
1 files changed, 1 insertions, 3 deletions
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]);