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/Cookie/Jar.php

    r46586 r50842  
    6969     *
    7070     * @param string $key Item key
    71      * @return string Item value
     71     * @return string|null Item value (null if offsetExists is false)
    7272     */
    7373    public function offsetGet($key) {
     
    163163     * @var Requests_Response $response
    164164     */
    165     public function before_redirect_check(Requests_Response &$return) {
     165    public function before_redirect_check(Requests_Response $return) {
    166166        $url = $return->url;
    167167        if (!$url instanceof Requests_IRI) {
     
    169169        }
    170170
    171         $cookies = Requests_Cookie::parse_from_headers($return->headers, $url);
    172         $this->cookies = array_merge($this->cookies, $cookies);
     171        $cookies         = Requests_Cookie::parse_from_headers($return->headers, $url);
     172        $this->cookies   = array_merge($this->cookies, $cookies);
    173173        $return->cookies = $this;
    174174    }
Note: See TracChangeset for help on using the changeset viewer.