Changeset 38054
- Timestamp:
- 07/13/2016 03:50:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r38043 r38054 348 348 $options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'] ); 349 349 350 // Check for proxies. 351 $proxy = new WP_HTTP_Proxy(); 352 if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { 353 $options['proxy'] = new Requests_Proxy_HTTP( $proxy->host() . ':' . $proxy->port() ); 354 355 if ( $proxy->use_authentication() ) { 356 $options['proxy']->user = $proxy->username(); 357 $options['proxy']->pass = $proxy->password(); 358 } 359 } 360 350 361 try { 351 362 $requests_response = Requests::request( $url, $headers, $data, $type, $options );
Note: See TracChangeset
for help on using the changeset viewer.