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