Skip to content

Commit

Permalink
Rollback changes from PR WordPress#657
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlof committed Nov 8, 2023
1 parent 88547ae commit 49012f8
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 49012f8

Please sign in to comment.