json fix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user