Make WordPress Core

Changeset 56554


Ignore:
Timestamp:
09/11/2023 10:31:22 AM (13 months ago)
Author:
costdev
Message:

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:

Follow-up to [54997], [55007], [55046], [55225], [55296], [55629].

Props jrf, mukesh27, spacedmonkey, costdev.
Fixes #59322.

Location:
trunk/src/wp-includes/Requests/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/Requests/src/Requests.php

    r55629 r56554  
    149149     * @var string
    150150     */
    151     const VERSION = '2.0.6';
     151    const VERSION = '2.0.8';
    152152
    153153    /**
  • trunk/src/wp-includes/Requests/src/Transport/Curl.php

    r55629 r56554  
    2626    const CURL_7_10_5 = 0x070A05;
    2727    const CURL_7_16_2 = 0x071002;
     28    const CURL_7_22_0 = 0x071600;
    2829
    2930    /**
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.