Fix URL construction in GetRawConfHandler to ensure proper HTTP scheme is used.

This commit is contained in:
2025-07-01 02:22:46 +08:00
parent b44703fa0f
commit 0fa95888cb

View File

@ -168,7 +168,7 @@ func GetRawConfHandler(c *gin.Context) {
return 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 { if err != nil {
respondWithError(c, http.StatusInternalServerError, "请求错误: "+err.Error()) respondWithError(c, http.StatusInternalServerError, "请求错误: "+err.Error())
return return