bugfix
This commit is contained in:
@@ -39,11 +39,13 @@ class HttpUtils {
|
||||
if ($parameters[$key] === null) {
|
||||
unset($parameters[$key]);
|
||||
} else {
|
||||
if ($key != HttpUtils::JSON_PARAM_BODY) {
|
||||
$parameters[$key] = (string)$parameters[$key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function buildDataForContentType($contentType, $parameters, &$headers) {
|
||||
$data = null;
|
||||
@@ -56,7 +58,7 @@ class HttpUtils {
|
||||
break;
|
||||
case ContentType::JSON:
|
||||
$headers[] = "Content-Type: application/json";
|
||||
$data = json_encode($parameters[JSON_PARAM_BODY]);
|
||||
$data = json_encode($parameters[HttpUtils::JSON_PARAM_BODY]);
|
||||
break;
|
||||
default:
|
||||
throw new MashapeClientException(
|
||||
|
||||
Reference in New Issue
Block a user