Skip to content

Commit

Permalink
Merge pull request #3 from nocksapp/1.1.2
Browse files Browse the repository at this point in the history
Added "json" accept header
  • Loading branch information
nocksapp authored Jul 26, 2018
2 parents cea11c3 + aba1183 commit 875b97a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ protected function sendRequest($method, $endpoint, $data = null)
$method,
($this->getTestMode() ? $this->sandboxEndpoint : $this->endpoint) . $endpoint,
[
'Accept' => 'application/json',
'Authorization' => 'Bearer ' . $this->getAccessToken(),
],
json_encode($data)
Expand Down

0 comments on commit 875b97a

Please sign in to comment.