Skip to content

Commit 537774d

Browse files
committed
External Libraries: Update the Requests library to version 2.0.8.
This is a maintenance release with minor changes: - Only force close cURL connection when needed (cURL < 7.22). References: - [https://github.com/WordPress/Requests/releases/tag/v2.0.8 Requests 2.0.8 release notes] - [WordPress/Requests@v2.0.6...v2.0.8 Full list of changes in Requests 2.0.8] Follow-up to [54997], [55007], [55046], [55225], [55296], [55629]. Props jrf, mukesh27, spacedmonkey, costdev. Fixes #59322. Built from https://develop.svn.wordpress.org/trunk@56554 git-svn-id: https://core.svn.wordpress.org/trunk@56066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent dd3b205 commit 537774d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

wp-includes/Requests/src/Requests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Requests {
148148
*
149149
* @var string
150150
*/
151-
const VERSION = '2.0.6';
151+
const VERSION = '2.0.8';
152152

153153
/**
154154
* Selected transport name

wp-includes/Requests/src/Transport/Curl.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
final class Curl implements Transport {
2626
const CURL_7_10_5 = 0x070A05;
2727
const CURL_7_16_2 = 0x071002;
28+
const CURL_7_22_0 = 0x071600;
2829

2930
/**
3031
* Raw HTTP data
@@ -363,7 +364,7 @@ private function setup_handle($url, $headers, $data, $options) {
363364
$options['hooks']->dispatch('curl.before_request', [&$this->handle]);
364365

365366
// Force closing the connection for old versions of cURL (<7.22).
366-
if (!isset($headers['Connection'])) {
367+
if ($this->version < self::CURL_7_22_0 && !isset($headers['Connection'])) {
367368
$headers['Connection'] = 'close';
368369
}
369370

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.4-alpha-56553';
19+
$wp_version = '6.4-alpha-56554';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)