diff --git a/http-message/Parse.php b/http-message/Parse.php index 96a013bd..8f98b6f6 100644 --- a/http-message/Parse.php +++ b/http-message/Parse.php @@ -16,10 +16,10 @@ class Parse public static function data($content, $contentType): mixed { if (str_contains($contentType, 'json')) { - return json_encode($contentType); + return json_encode($content); } if (str_contains($contentType, 'xml')) { - return Xml::toArray($contentType); + return Xml::toArray($content); } if (str_contains($contentType, 'x-www-form-urlencoded')) { parse_str($content, $array);