aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-11-26 17:20:54 +0100
committerGitHub <noreply@github.com>2024-11-26 17:20:54 +0100
commita173e1a756d1273db0c3c1897010f0d85b0afc60 (patch)
treee37a87153194e0c0361c18125f174690a65b82d5 /lib/private/Http/Client
parent14f7e566c4cfca78d22706321b8f0b6cf4878ddb (diff)
downloadnextcloud-server-guzzleHandler.tar.gz
nextcloud-server-guzzleHandler.zip
fix(http): Let Guzzle set the appropriate handlerguzzleHandler
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private/Http/Client')
-rw-r--r--lib/private/Http/Client/ClientService.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Http/Client/ClientService.php b/lib/private/Http/Client/ClientService.php
index b719f3d369d..05c7e31ff93 100644
--- a/lib/private/Http/Client/ClientService.php
+++ b/lib/private/Http/Client/ClientService.php
@@ -55,8 +55,7 @@ class ClientService implements IClientService {
* @return Client
*/
public function newClient(): IClient {
- $handler = new CurlHandler();
- $stack = HandlerStack::create($handler);
+ $stack = HandlerStack::create();
if ($this->config->getSystemValueBool('dns_pinning', true)) {
$stack->push($this->dnsPinMiddleware->addDnsPinning());
}