This commit is contained in:
thefosk
2012-11-15 18:22:40 -08:00
parent bb551dd088
commit 83f80bc84b

View File

@@ -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,