From d9135ee91e2aa1e402f5239b64bc176fba5ceaae Mon Sep 17 00:00:00 2001 From: thefosk Date: Thu, 15 Nov 2012 16:59:30 -0800 Subject: [PATCH] json encode fix --- main/mashape/http/HttpUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/mashape/http/HttpUtils.php b/main/mashape/http/HttpUtils.php index c0650b3..d016fcc 100644 --- a/main/mashape/http/HttpUtils.php +++ b/main/mashape/http/HttpUtils.php @@ -56,7 +56,7 @@ class HttpUtils { break; case ContentType::JSON: $headers[] = "Content-Type: application/json"; - $data = $parameters[JSON_PARAM_BODY]; + $data = json_encode($parameters[JSON_PARAM_BODY]); break; default: throw new MashapeClientException(