Fix authentication
This commit is contained in:
parent
b3535c64ae
commit
ada1fdfdee
|
@ -37,7 +37,7 @@ class Adonis {
|
|||
$headers[] = "Accept: application/json";
|
||||
|
||||
if ($add_token == true) {
|
||||
$headers[] = "Authentication_Token: " . $this->getToken($api);
|
||||
$payload["Authentication_Token"] = $this->getToken($api);
|
||||
}
|
||||
|
||||
if ($wrap_request == true) {
|
||||
|
|
Loading…
Reference in a new issue