From cc0b95749fe9fd4a628bba9a048d44bd020447ee Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 3 May 2024 10:27:17 +0200 Subject: [PATCH] [HttpClient] Fix cURL default options --- src/Symfony/Component/HttpClient/Response/CurlResponse.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Symfony/Component/HttpClient/Response/CurlResponse.php b/src/Symfony/Component/HttpClient/Response/CurlResponse.php index 633b74a1256ed..f36a05f9d6ae2 100644 --- a/src/Symfony/Component/HttpClient/Response/CurlResponse.php +++ b/src/Symfony/Component/HttpClient/Response/CurlResponse.php @@ -174,10 +174,6 @@ public function __construct(CurlClientState $multi, $ch, ?array $options = null, curl_multi_remove_handle($multi->handle, $ch); curl_setopt_array($ch, [ \CURLOPT_NOPROGRESS => true, - \CURLOPT_PROGRESSFUNCTION => null, - \CURLOPT_HEADERFUNCTION => null, - \CURLOPT_WRITEFUNCTION => null, - \CURLOPT_READFUNCTION => null, \CURLOPT_INFILE => null, ]);