From 83f80bc84be8771387b7f53931556acec0587378 Mon Sep 17 00:00:00 2001 From: thefosk Date: Thu, 15 Nov 2012 18:22:40 -0800 Subject: [PATCH] json fix --- main/mashape/http/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/mashape/http/HttpClient.php b/main/mashape/http/HttpClient.php index bc10265..89fb7de 100755 --- a/main/mashape/http/HttpClient.php +++ b/main/mashape/http/HttpClient.php @@ -64,7 +64,7 @@ class HttpClient { throw new MashapeClientException(EXCEPTION_NOTSUPPORTED_HTTPMETHOD, EXCEPTION_NOTSUPPORTED_HTTPMETHOD_CODE); } - if ($contentType == ContentType::JSON && is_array($parameters)) { + if ($contentType == ContentType::JSON) { // Content type JSON does not allow array parameters. throw new MashapeClientException( EXCEPTION_CONTENT_TYPE_JSON_ARRAY,