mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Props jorbin, hellofromTonya, desrosj, barry, cenkdemir, nexflaszlo, schlessera, jrf, Clorith, tomsommer, azaozz, pbiron, afragen, howdy_mcgee. Fixes #59842. Built from https://develop.svn.wordpress.org/trunk@57086 git-svn-id: http://core.svn.wordpress.org/trunk@56597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
436d55fa51
commit
887ffe1995
@ -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';
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user