From 0fa95888cb6d309e47f8c6d54994408cca0c2e4d Mon Sep 17 00:00:00 2001 From: nite Date: Tue, 1 Jul 2025 02:22:46 +0800 Subject: [PATCH] Fix URL construction in GetRawConfHandler to ensure proper HTTP scheme is used. --- server/handler/short_link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handler/short_link.go b/server/handler/short_link.go index e6061f1..a5500c2 100644 --- a/server/handler/short_link.go +++ b/server/handler/short_link.go @@ -168,7 +168,7 @@ func GetRawConfHandler(c *gin.Context) { return } - response, err := http.Get(strings.TrimSuffix(config.GlobalConfig.Address, "/") + "/" + shortLink.Url) + response, err := http.Get("http://" + strings.TrimSuffix(config.GlobalConfig.Address, "/") + "/" + shortLink.Url) if err != nil { respondWithError(c, http.StatusInternalServerError, "请求错误: "+err.Error()) return