This commit is contained in:
Josh Yan 2024-07-05 16:23:39 -07:00
parent 9b3f47b674
commit 3aee405dfa

View File

@ -812,7 +812,6 @@ func (s *Server) IsLocal(c *gin.Context) bool {
fmt.Println("entered islocal")
fmt.Println(c.GetHeader("Authorization"), " is authorization")
if authz := c.GetHeader("Authorization"); authz != "" {
parts := strings.Split(authz, ":")
if len(parts) != 3 {
fmt.Println("failed at lenParts")