@@ -35,15 +35,15 @@ discard block |
||
35 | 35 | 'timeout_ms' => 'CURLOPT_TIMEOUT_MS', // milliseconds, libcurl version > 7.36.0 , |
36 | 36 | ); |
37 | 37 | public $curlHandle; |
38 | - protected $options = array( |
|
39 | - 'CURLOPT_MAXREDIRS' => 10, |
|
38 | + protected $options = array( |
|
39 | + 'CURLOPT_MAXREDIRS' => 10, |
|
40 | 40 | // 'CURLOPT_IPRESOLVE' => CURL_IPRESOLVE_V4,//IPv4 |
41 | - 'header' => true, |
|
42 | - 'method' => self::GET, |
|
43 | - 'transfer' => true, |
|
44 | - 'follow_location' => true, |
|
45 | - 'timeout' => 0); |
|
46 | - protected $endCallback; |
|
41 | + 'header' => true, |
|
42 | + 'method' => self::GET, |
|
43 | + 'transfer' => true, |
|
44 | + 'follow_location' => true, |
|
45 | + 'timeout' => 0); |
|
46 | + protected $endCallback; |
|
47 | 47 | protected $withURIQuery; |
48 | 48 | |
49 | 49 | protected function __construct() { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | |
223 | 223 | self::filterAndRaw($this->options); |
224 | 224 | |
225 | - curl_setopt_array($this->curlHandle, $this->options); |
|
225 | + curl_setopt_array($this->curlHandle, $this->options); |
|
226 | 226 | |
227 | 227 | return $this; |
228 | 228 | } |