From 275b5cad4d8270bcf0aecf33808f52642f81959d Mon Sep 17 00:00:00 2001 From: Dennis Oderwald Date: Thu, 17 Mar 2016 23:28:34 +0100 Subject: [PATCH] Fixes #1 --- src/Http/Client.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Http/Client.php b/src/Http/Client.php index afdd310..eb31d52 100644 --- a/src/Http/Client.php +++ b/src/Http/Client.php @@ -17,7 +17,10 @@ public function __construct($apiKey) parent::__construct([ 'base_uri' => 'https://api.shipcloud.io/v1/', - 'auth' => [$apiKey, null] + 'auth' => [$apiKey, null], + 'headers' => [ + 'Content-Type' => 'application/json' + ] ]); }