Skip to content

Commit

Permalink
Merge pull request #839 from laszlof/issue-838
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Nov 8, 2023
2 parents 88547ae + 49012f8 commit d476725
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Transport/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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
Expand Down Expand Up @@ -383,7 +382,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';
}

Expand Down

0 comments on commit d476725

Please sign in to comment.