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;
* @return Client
*/
public function newClient(): IClient {
- $stack = HandlerStack::create();
+ $handler = new CurlHandler();
+ $stack = HandlerStack::create($handler);
$stack->push($this->dnsPinMiddleware->addDnsPinning());
$client = new GuzzleClient(['handler' => $stack]);
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;
$localAddressChecker
);
- $stack = HandlerStack::create();
+ $handler = new CurlHandler();
+ $stack = HandlerStack::create($handler);
$stack->push($dnsPinMiddleware->addDnsPinning());
$guzzleClient = new GuzzleClient(['handler' => $stack]);