diff --git a/src/Utils/Request.php b/src/Utils/Request.php index accfcd9..e2bae8b 100644 --- a/src/Utils/Request.php +++ b/src/Utils/Request.php @@ -19,10 +19,10 @@ public function __construct($clientId = '', $clientSecret = '', $token = null, $ if ($token !== null) { $headers['Authorization'] = "Bearer {$token}"; - $headers['Content-Type'] = 'application/json'; + $headers['Content-Type'] = 'application/json; charset=utf8'; } else { $headers['Authorization'] = "Basic {$encodedClientIdAndSecret}"; - $headers['Content-Type'] = 'application/x-www-form-urlencoded'; + $headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf8'; } $this->curl = new Client(array_merge_recursive([