From 2f34bcf8a89855b1940f50b60af329e3366f2272 Mon Sep 17 00:00:00 2001 From: Evan Seguin Date: Tue, 31 Jul 2012 11:48:36 -0700 Subject: [PATCH] Fixed a bug causing calls to fail for APIs with query auth and no parameters --- main/mashape/http/HttpClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/mashape/http/HttpClient.php b/main/mashape/http/HttpClient.php index b5a8ef2..b0f5601 100755 --- a/main/mashape/http/HttpClient.php +++ b/main/mashape/http/HttpClient.php @@ -65,6 +65,9 @@ class HttpClient { private static function execRequest($httpMethod, $url, $parameters, $authHandlers) { $data = null; + if ($parameters == null) { + $parameters = array(); + } $headers = array(); $headers[] = UrlUtils::generateClientHeaders();