Skip to content

Commit

Permalink
amend the way query strings are handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
N1ghteyes committed Oct 31, 2019
1 parent ebbc64e commit 490d596
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/apicore/structure/apicore.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,14 @@ private function setDefaultCurlOpts(){
private function processArgs($args){
if(!empty($args)) {
switch ($this->httpMethod) {
case 'DELETE':
case 'GET':
$this->request->addQueryString($args);
$this->args['query'] = $args;
break;
case 'PUT':
case 'POST':
$this->args[$this->bodyFormat] = $args;
break;
break;
case 'DELETE':
$this->args['query'] = $args;
break;
}
}
return $this;
Expand Down

0 comments on commit 490d596

Please sign in to comment.