External Libraries: Update Requests to 2.0.9.

This updates the Requests library from version 2.0.8 to 2.0.9. This is a hotfix release.

Reviewed by jorbin, desrosj.
Merges [57086] to 6.4 branch.

Props jorbin, hellofromTonya, desrosj, barry, cenkdemir, nexflaszlo, schlessera, jrf, Clorith, tomsommer, azaozz, pbiron, afragen, howdy_mcgee.
Fixes .


git-svn-id: https://develop.svn.wordpress.org/branches/6.4@57088 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2023-11-08 20:30:06 +00:00
parent faedab68e5
commit 299ba76a50
2 changed files with 2 additions and 3 deletions
src/wp-includes/Requests/src

@ -148,7 +148,7 @@ class Requests {
*
* @var string
*/
const VERSION = '2.0.8';
const VERSION = '2.0.9';
/**
* Selected transport name

@ -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';
}