From 8de3efa44d84db1183eef30cecb5b46c70e635b3 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 11 Jul 2017 14:22:11 +0200 Subject: [PATCH] Replace Api Token by Authorization --- modules/antadis_doofinder/lib/doofinder_api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/antadis_doofinder/lib/doofinder_api.php b/modules/antadis_doofinder/lib/doofinder_api.php index 1434801e..bbdc8734 100644 --- a/modules/antadis_doofinder/lib/doofinder_api.php +++ b/modules/antadis_doofinder/lib/doofinder_api.php @@ -152,7 +152,8 @@ class DoofinderApi{ private function reqHeaders(){ $headers = array(); $headers[] = 'Expect:'; //Fixes the HTTP/1.1 417 Expectation Failed - $authHeaderName = $this->apiVersion == '4' ? 'API Token: ' : 'authorization: '; + //$authHeaderName = $this->apiVersion == '4' ? 'API Token: ' : 'authorization: '; + $authHeaderName = 'Authorization: '; $headers[] = $authHeaderName . $this->api_key; //API Authorization return $headers; }