forked from Alex/Pterodactyl-Panel
Fix 401 error typo (#3393)
This commit is contained in:
parent
2fd16f441d
commit
9656378783
@ -55,7 +55,7 @@ class DaemonAuthenticate
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($bearer = $request->bearerToken())) {
|
if (is_null($bearer = $request->bearerToken())) {
|
||||||
throw new HttpException(401, 'Access this this endpoint must include an Authorization header.', null, ['WWW-Authenticate' => 'Bearer']);
|
throw new HttpException(401, 'Access to this endpoint must include an Authorization header.', null, ['WWW-Authenticate' => 'Bearer']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parts = explode('.', $bearer);
|
$parts = explode('.', $bearer);
|
||||||
|
Loading…
Reference in New Issue
Block a user