From 0071d76d7b579a1e7f81593523d20ada3f1849b3 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 8 Nov 2023 19:12:59 +0100 Subject: [PATCH] Merge pull request #839 from laszlof/issue-838 --- src/Transport/Curl.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Transport/Curl.php b/src/Transport/Curl.php index 29034b25d..7316987b5 100644 --- a/src/Transport/Curl.php +++ b/src/Transport/Curl.php @@ -25,7 +25,6 @@ final class Curl implements Transport { const CURL_7_10_5 = 0x070A05; const CURL_7_16_2 = 0x071002; - const CURL_7_22_0 = 0x071600; /** * Raw HTTP data @@ -364,7 +363,7 @@ private function setup_handle($url, $headers, $data, $options) { $options['hooks']->dispatch('curl.before_request', [&$this->handle]); // Force closing the connection for old versions of cURL (<7.22). - if ($this->version < self::CURL_7_22_0 && !isset($headers['Connection'])) { + if (!isset($headers['Connection'])) { $headers['Connection'] = 'close'; }