json encode fix

This commit is contained in:
thefosk
2012-11-15 16:59:30 -08:00
parent 66633cf78b
commit d9135ee91e

View File

@@ -56,7 +56,7 @@ class HttpUtils {
break; break;
case ContentType::JSON: case ContentType::JSON:
$headers[] = "Content-Type: application/json"; $headers[] = "Content-Type: application/json";
$data = $parameters[JSON_PARAM_BODY]; $data = json_encode($parameters[JSON_PARAM_BODY]);
break; break;
default: default:
throw new MashapeClientException( throw new MashapeClientException(