mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-08-08 13:21:58 +08:00
修复ipv6标准化的潜在BUG
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user