Skip to content

Commit 581d7f3

Browse files
committed
fix: align empty auth token error message with test expectations
Update error message for empty authentication tokens to match test expectations. This ensures consistency between the validation logic and test suite. Change-Id: I473d1379fe0362d41384f5f88128b759ad8ae685 Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent b9b7b08 commit 581d7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/claudecode/server/handshake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function M.validate_upgrade_request(request, expected_auth_token)
4848

4949
-- Check for empty auth header
5050
if auth_header == "" then
51-
return false, "Empty authentication token provided"
51+
return false, "Authentication token too short (min 10 characters)"
5252
end
5353

5454
-- Check for suspicious auth header lengths

0 commit comments

Comments
 (0)