middlewares/auth/auth.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
middlewares/auth/auth.go
@@ -37,6 +37,7 @@ c.Next() } else if strings.HasPrefix(urlPath,"/httpImage") { imgUrl := config.Server.ImageUrl urlPath = strings.Replace(urlPath, "/httpImage", "", -1) idx := strings.Index(urlPath, ":") tmpPath := urlPath if idx >-1 {//路径中包含有端口,取端口以后路径