diff --git a/TwitterAPIExchange.php b/TwitterAPIExchange.php index 93c28b5..d6e3a58 100755 --- a/TwitterAPIExchange.php +++ b/TwitterAPIExchange.php @@ -288,13 +288,13 @@ public function performRequest($return = true, $curlOptions = array()) $curlOptions[CURLOPT_CUSTOMREQUEST] = $this->requestMethod; } - $options = array( + $options = $curlOptions + array( CURLOPT_HTTPHEADER => $header, CURLOPT_HEADER => false, CURLOPT_URL => $this->url, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 10, - ) + $curlOptions; + ); if (!is_null($postfields)) {