aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-10-23 10:42:46 +0200
committerGitHub <noreply@github.com>2022-10-23 10:42:46 +0200
commit304c1b9b61b20dfa3c1f07e8a914f0661d91704d (patch)
tree26d26ae5c056384da64e78d21fb9a0919e268fd7 /lib/private
parent54ce35ebd80be7453bc4a59180c29630185dfab5 (diff)
parent2ad53742f209294eced274366b7b80c17f34d15c (diff)
downloadnextcloud-server-304c1b9b61b20dfa3c1f07e8a914f0661d91704d.tar.gz
nextcloud-server-304c1b9b61b20dfa3c1f07e8a914f0661d91704d.zip
Merge pull request #33087 from nextcloud/fix/30282/external-storages
fix external storages access
Diffstat (limited to 'lib/private')
-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]);