修复ipv6标准化的潜在BUG

This commit is contained in:
user123456
2025-06-17 18:38:48 +08:00
parent aea36939a3
commit 182dced403
3 changed files with 32 additions and 19 deletions

View File

@@ -171,11 +171,11 @@ func handler(c *gin.Context) {
rawPath = strings.Replace(rawPath, "/blob/", "/raw/", 1)
}
proxy(c, rawPath)
proxyRequest(c, rawPath)
}
func proxy(c *gin.Context, u string) {
func proxyRequest(c *gin.Context, u string) {
proxyWithRedirect(c, u, 0)
}