8000 Add check for constant in Curl client · alex-dev/symfony@c888797 · GitHub
[go: up one dir, main page]

Skip to content

Commit c888797

Browse files
committed
Add check for constant in Curl client
1 parent 6dd5078 commit c888797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/CurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function request(string $method, string $url, array $options = []): Respo
170170
$curlopts[\CURLOPT_DNS_USE_GLOBAL_CACHE] = false;
171171
}
172172

173-
if (\defined('CURLOPT_HEADEROPT')) {
173+
if (\defined('CURLOPT_HEADEROPT') && \defined('CURLHEADER_SEPARATE')) {
174174
$curlopts[\CURLOPT_HEADEROPT] = \CURLHEADER_SEPARATE;
175175
}
176176

0 commit comments

Comments
 (0)
0