From 3565331a58ca43cd640f8ab0766e6deaa8ba4319 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 12 Feb 2024 00:39:58 -0500 Subject: [PATCH] fix: need to trim upper and lower case --- api/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/middleware.go b/api/middleware.go index a0ac80c..a6dea66 100644 --- a/api/middleware.go +++ b/api/middleware.go @@ -240,6 +240,7 @@ func parseAuthTokenHeader(headers http.Header) string { } authHeader = strings.TrimPrefix(authHeader, "Bearer ") + authHeader = strings.TrimPrefix(authHeader, "bearer ") return authHeader }