From 814834fbfd08230e77e4f8fa5612b9cdab2311e2 Mon Sep 17 00:00:00 2001 From: Kamran Syed Date: Sat, 21 Apr 2018 11:58:32 +0500 Subject: [PATCH] Appending .JSON is not required Appending .json in service url is causing client to fail. I have just removed it. --- restclient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restclient.php b/restclient.php index 3a69870..ccdd9df 100755 --- a/restclient.php +++ b/restclient.php @@ -154,7 +154,7 @@ public function execute($url, $method='GET', $parameters=[], $headers=[]){ } if($client->options['format']) - $client->url .= '.'.$client->options['format']; + //$client->url .= '.'.$client->options['format']; // Allow passing parameters as a pre-encoded string (or something that // allows casting to a string). Parameters passed as strings will not be