Changeset 38727 for trunk/src/wp-includes/Requests/Transport/cURL.php
- Timestamp:
- 10/05/2016 03:23:54 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Transport/cURL.php
r38274 r38727 376 376 curl_setopt($this->handle, CURLOPT_REFERER, $url); 377 377 curl_setopt($this->handle, CURLOPT_USERAGENT, $options['useragent']); 378 curl_setopt($this->handle, CURLOPT_HTTPHEADER, $headers); 379 378 if (!empty($headers)) { 379 curl_setopt($this->handle, CURLOPT_HTTPHEADER, $headers); 380 } 380 381 if ($options['protocol_version'] === 1.1) { 381 382 curl_setopt($this->handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); … … 459 460 * @return integer Length of provided data 460 461 */ 461 p rotectedfunction stream_body($handle, $data) {462 public function stream_body($handle, $data) { 462 463 $this->hooks->dispatch('request.progress', array($data, $this->response_bytes, $this->response_byte_limit)); 463 464 $data_length = strlen($data);
Note: See TracChangeset
for help on using the changeset viewer.