Make WordPress Core


Ignore:
Timestamp:
05/11/2021 07:40:41 PM (4 years ago)
Author:
desrosj
Message:

External Libraries: Update the Requests library to version 1.8.0.

While some of the changes in the 1.8.0 release have already been copied to WordPress Core in earlier releases (see [38727], [46258], [47902] and [49382]), this release contains additional improvements, including:

  • A significant performance fix when using cURL.
  • Improved compliance with RFC2616.

The library has also been moved under the WordPress project’s GitHub organization and can now be found at https://github.com/WordPress/Requests.

Props jrf, dd32, rmccue, justinahinon, netweb, schlessera, TimothyBJacobs, soulseekah, ozh, skithund, carlalexander, travisnorthcutt, desrosj.
Fixes #53101.

File:
1 edited

Legend:

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

    r46586 r50842  
    2323     *
    2424     * URLs will be made absolute using this as the base
     25     *
    2526     * @var string|null
    2627     */
     
    2930    /**
    3031     * Base headers for requests
     32     *
    3133     * @var array
    3234     */
     
    6567     */
    6668    public function __construct($url = null, $headers = array(), $data = array(), $options = array()) {
    67         $this->url = $url;
     69        $this->url     = $url;
    6870        $this->headers = $headers;
    69         $this->data = $data;
     71        $this->data    = $data;
    7072        $this->options = $options;
    7173
Note: See TracChangeset for help on using the changeset viewer.