Replace Api Token by Authorization

This commit is contained in:
Michael RICOIS 2017-07-11 14:22:11 +02:00
parent 9247e48096
commit 8de3efa44d

View File

@ -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;
}