liuxiaolong
2019-08-16 5dd6d9f4223af9a7c25bbfae774bae0204b794fd
rm /httpImage
1个文件已修改
1 ■■■■ 已修改文件
middlewares/auth/auth.go 1 ●●●● 补丁 | 查看 | 原始文档 | 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 {//路径中包含有端口,取端口以后路径