Skip to content

Commit

Permalink
Charset UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRafn committed Sep 3, 2019
1 parent 30f250a commit 4f6063f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 4f6063f

Please sign in to comment.