Skip to content

Commit

Permalink
Added "json" accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie op de Weegh committed Jul 26, 2018
1 parent cea11c3 commit aba1183
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 aba1183

Please sign in to comment.