Authorization

This commit is contained in:
Michael RICOIS 2017-07-11 14:28:07 +02:00
parent 8de3efa44d
commit bcb2c2f5a5

View File

@ -152,7 +152,7 @@ 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;