Skip to content

Commit 9656378

Browse files
authored
Fix 401 error typo (pterodactyl#3393)
1 parent 2fd16f4 commit 9656378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/Api/Daemon/DaemonAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle(Request $request, Closure $next)
5555
}
5656

5757
if (is_null($bearer = $request->bearerToken())) {
58-
throw new HttpException(401, 'Access this this endpoint must include an Authorization header.', null, ['WWW-Authenticate' => 'Bearer']);
58+
throw new HttpException(401, 'Access to this endpoint must include an Authorization header.', null, ['WWW-Authenticate' => 'Bearer']);
5959
}
6060

6161
$parts = explode('.', $bearer);

0 commit comments

Comments
 (0)