diff --git a/lmcp.lua b/lmcp.lua index 772687c..df3875d 100644 --- a/lmcp.lua +++ b/lmcp.lua @@ -939,7 +939,7 @@ local function _check_auth(self, conn) if not self._auth_token then return true end if conn.method == "OPTIONS" then return true end local auth = conn.headers["authorization"] or "" - local token = auth:match("^Bearer%s+(.+)$") + local token = auth:match("^[Bb]earer%s+(.+)$") return token == self._auth_token end