Skip to content

Commit

Permalink
Merge pull request #3 from Webmecanik/allow-optional-arguments-for-co…
Browse files Browse the repository at this point in the history
…ntact-create

Allow optional arguments for contact create
  • Loading branch information
kuzmany authored Dec 20, 2023
2 parents 269b084 + b96f2f3 commit 88c07eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Auth/AbstractAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ public function makeRequest($url, array $parameters = [], $method = 'GET', array
{
$this->log('makeRequest('.$url.', '.http_build_query($parameters).', '.$method.',...)');

list($url, $parameters) = $this->separateUrlParams($url, $parameters);
if ($method === 'GET') { // We want to keep get arguments for non GET
list($url, $parameters) = $this->separateUrlParams($url, $parameters);
}

//make sure $method is capitalized for congruency
$method = strtoupper($method);
Expand Down

0 comments on commit 88c07eb

Please sign in to comment.