Changes from branches/4.6/src/wp-includes/class-http.php at r38485 to trunk/src/wp-includes/class-http.php at r38173
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r38485 r38173 363 363 } 364 364 365 // Work around a bug in Requests when the path starts with // See https://github.com/rmccue/Requests/issues/231366 $url = preg_replace( '!^(\w+://[^/]+)//(.*)$!i', '$1/$2', $url );367 368 365 try { 369 366 $requests_response = Requests::request( $url, $headers, $data, $type, $options ); … … 437 434 if ( $value instanceof WP_Http_Cookie ) { 438 435 $cookie_jar[ $value->name ] = new Requests_Cookie( $value->name, $value->value, $value->get_attributes() ); 439 } elseif ( is_s calar( $value ) ) {436 } elseif ( is_string( $value ) ) { 440 437 $cookie_jar[ $name ] = new Requests_Cookie( $name, $value ); 441 438 }
Note: See TracChangeset
for help on using the changeset viewer.