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 = [