From c888797313107fdd01c2b93347497294e559ae17 Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Tue, 19 Jan 2021 11:46:14 +0200 Subject: [PATCH] Add check for constant in Curl client --- src/Symfony/Component/HttpClient/CurlHttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpClient/CurlHttpClient.php b/src/Symfony/Component/HttpClient/CurlHttpClient.php index 766cf222c2..42388a65e0 100644 --- a/src/Symfony/Component/HttpClient/CurlHttpClient.php +++ b/src/Symfony/Component/HttpClient/CurlHttpClient.php @@ -170,7 +170,7 @@ final class CurlHttpClient implements HttpClientInterface, LoggerAwareInterface, $curlopts[\CURLOPT_DNS_USE_GLOBAL_CACHE] = false; } - if (\defined('CURLOPT_HEADEROPT')) { + if (\defined('CURLOPT_HEADEROPT') && \defined('CURLHEADER_SEPARATE')) { $curlopts[\CURLOPT_HEADEROPT] = \CURLHEADER_SEPARATE; }