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();