diff --git a/wp-includes/Requests/src/Requests.php b/wp-includes/Requests/src/Requests.php index edf37f2214..bb5292ac49 100644 --- a/wp-includes/Requests/src/Requests.php +++ b/wp-includes/Requests/src/Requests.php @@ -148,7 +148,7 @@ class Requests { * * @var string */ - const VERSION = '2.0.8'; + const VERSION = '2.0.9'; /** * Selected transport name diff --git a/wp-includes/Requests/src/Transport/Curl.php b/wp-includes/Requests/src/Transport/Curl.php index 29034b25d5..7316987b5f 100644 --- a/wp-includes/Requests/src/Transport/Curl.php +++ b/wp-includes/Requests/src/Transport/Curl.php @@ -25,7 +25,6 @@ use WpOrg\Requests\Utility\InputValidator; 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 @@ final class Curl implements Transport { $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'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index a42190b477..8f9d37613a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57085'; +$wp_version = '6.5-alpha-57086'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.