From 4f6063f7f0e70939b85b361fe759b28061ff2124 Mon Sep 17 00:00:00 2001 From: Lasse Rafn Date: Tue, 3 Sep 2019 10:24:35 +0100 Subject: [PATCH] Charset UTF-8 --- src/Utils/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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([