From aba11835eea4ea34d1aa5661994649bda1c470a3 Mon Sep 17 00:00:00 2001 From: Robbie op de Weegh Date: Thu, 26 Jul 2018 14:42:47 +0200 Subject: [PATCH] Added "json" accept header --- src/Message/AbstractRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index c9843d3..ed061b0 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -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)