remove errant print

This commit is contained in:
Aneurin Barker Snook
2024-06-22 17:29:07 +01:00
parent ca9e4765cb
commit 88c2216e76
-2
View File
@@ -1,7 +1,6 @@
package rest
import (
"fmt"
"net/http"
)
@@ -22,7 +21,6 @@ func ReadBearerToken(req *http.Request) string {
header := req.Header.Get("authorization")
if len(header) > 8 {
bearer := header[0:7]
fmt.Println(bearer)
if bearer == "bearer " || bearer == "Bearer " {
return header[7:]
}