Replace Api Token by Authorization
This commit is contained in:
parent
9247e48096
commit
8de3efa44d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user