From 4400af14b264b3016fad638910c365a61c2b0219 Mon Sep 17 00:00:00 2001 From: sragfw Date: Thu, 9 Apr 2020 14:49:39 +0200 Subject: [PATCH] fix_may_json --- classes/Recommender/RecommenderCurl.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/Recommender/RecommenderCurl.php b/classes/Recommender/RecommenderCurl.php index e3dbd0f..62b8d0f 100644 --- a/classes/Recommender/RecommenderCurl.php +++ b/classes/Recommender/RecommenderCurl.php @@ -48,8 +48,8 @@ public function start()/*:void*/ ilSession::clear(self::KEY_RESPONSE_TIME_START); $headers = [ - "Accept" => "application/json", - "Content-Type" => "application/json" + "Accept: application/json", + "Content-Type: application/json" ]; $data = [ "secret" => $this->facade->settings()->getSecret(), @@ -250,8 +250,8 @@ public function answer(string $recomander_id, int $question_type, $answer)/*:voi global $DIC; $headers = [ - "Accept" => "application/json", - "Content-Type" => "application/json" + "Accept: application/json", + "Content-Type: application/json" ]; $data = [ @@ -279,8 +279,8 @@ public function sendRating(string $recomander_id, int $rating)/*:void*/ global $DIC; $headers = [ - "Accept" => "application/json", - "Content-Type" => "application/json" + "Accept: application/json", + "Content-Type: application/json" ]; $data = [