diff --git a/web/controller/sub.go b/web/controller/sub.go index e7ade37b13..122c60d1f2 100644 --- a/web/controller/sub.go +++ b/web/controller/sub.go @@ -27,7 +27,7 @@ func (a *SUBController) initRouter(g *gin.RouterGroup) { func (a *SUBController) subs(c *gin.Context) { subId := c.Param("subid") - host := c.Request.Host + host := c.Request.URL.Hostname() subs, err := a.subService.GetSubs(subId, host) if err != nil { c.String(400, "Error!")