From ec05004139702f55a6443bc44bf8f0eb865683fe Mon Sep 17 00:00:00 2001 From: Manjiri Tapaswi Date: Thu, 21 Dec 2017 13:24:02 -0800 Subject: [PATCH] Fixes #466 getBasesResponses should specify 'Content-Type:application/json' in curl options --- src/models/Level.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/Level.php b/src/models/Level.php index e559621b..20c832d2 100644 --- a/src/models/Level.php +++ b/src/models/Level.php @@ -1256,6 +1256,7 @@ public static function getBasesResponses( curl_setopt($curl_handlers[$base_id], CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handlers[$base_id], CURLOPT_PORT, 12345); curl_setopt($curl_handlers[$base_id], CURLOPT_TIMEOUT, 3); + curl_setopt($curl_handlers[$base_id], CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_multi_add_handle($multi_handler, $curl_handlers[$base_id]); }