Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #204 from emmetog/patch-1
Browse files Browse the repository at this point in the history
Allow overriding of curl options
  • Loading branch information
J7mbo authored Aug 30, 2016
2 parents 6a8982b + d2b3b8e commit a1d9496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwitterAPIExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit a1d9496

Please sign in to comment.