diff --git a/src/Service/AbstractService.php b/src/Service/AbstractService.php index 6efe4e5..8bda173 100644 --- a/src/Service/AbstractService.php +++ b/src/Service/AbstractService.php @@ -79,10 +79,12 @@ public function getLastResponse() public function send(Request $request, array $params = array()) { $args = array(); - if ($request->getMethod() === 'GET') { - $args['query'] = $params; - } else { - $args['json'] = $params; + if (!empty($params)) { + if ($request->getMethod() === 'GET') { + $args['query'] = $params; + } else { + $args['json'] = $params; + } } $this->lastResponse = $this->client->send($request, $args); return json_decode(