From e7f73ba3cd1597fe6e54988641490f2f0296b851 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 16 Apr 2019 09:21:48 +1000 Subject: [PATCH] Add handling of query parameters to get request --- src/GuzzleCommunicationService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GuzzleCommunicationService.php b/src/GuzzleCommunicationService.php index cf3bf86..9efe8c0 100644 --- a/src/GuzzleCommunicationService.php +++ b/src/GuzzleCommunicationService.php @@ -186,7 +186,8 @@ public function delete($path, $parameters = array()) { public function get($path, $parameters = array()) { $query_parameters= http_build_query(array_filter($parameters)); - $relative_path = $path . $query_parameters; + + $relative_path = (!empty($query_parameters)) ? $path . '?' . $query_parameters : $path; $options = array();