fix: strip out token

This commit is contained in:
Derrick Hammer 2024-02-12 02:03:21 -05:00
parent 6eab62d128
commit 276b43ddd0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,8 @@ func parseAuthTokenHeader(headers http.Header) string {
authHeader = strings.TrimPrefix(authHeader, "Bearer ")
authHeader = strings.TrimPrefix(authHeader, "bearer ")
authHeader = strings.TrimPrefix(authHeader, "Token ")
authHeader = strings.TrimPrefix(authHeader, "token ")
return authHeader
}