From d2b3b8eb7ef047723394300aeca781cf43fa0ced Mon Sep 17 00:00:00 2001 From: Emmet O'Grady Date: Sun, 31 Jul 2016 16:57:46 +0200 Subject: [PATCH] Allow overriding of curl options --- TwitterAPIExchange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwitterAPIExchange.php b/TwitterAPIExchange.php index 299b547..631b9d1 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)) {