Add check for constant in Curl client
This commit is contained in:
parent
6dd5078c62
commit
c888797313
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user