Make WordPress Core


Ignore:
Timestamp:
10/05/2016 03:26:37 AM (5 years ago)
Author:
dd32
Message:

HTTP: Update Requests to master (0048f3c) which fixes a number of outstanding issues.

Merges [38727] to the 4.6 branch.

Fixes #38070, #37733 by reverting part of [38429] and using the fix in Requests.
Fixes #37992 allowing for connecting to SSL resources on ports other than 443.
Fixes #37991 by not sending default ports in the Host: header.
Fixes #37839 to match and decode Chunked responses correctly.
Fixes #38232 allowing a SSL connection to ignore the hostname of the certificate when verification is disabled.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-includes/class-http.php

    r38485 r38728  
    333333        if ( ! $r['sslverify'] ) {
    334334            $options['verify'] = false;
     335            $options['verifyname'] = false;
    335336        } else {
    336337            $options['verify'] = $r['sslcertificates'];
     
    362363            }
    363364        }
    364 
    365         // Work around a bug in Requests when the path starts with // See https://github.com/rmccue/Requests/issues/231
    366         $url = preg_replace( '!^(\w+://[^/]+)//(.*)$!i', '$1/$2', $url );
    367365
    368366        try {
Note: See TracChangeset for help on using the changeset viewer.