Skip to content

Commit

Permalink
[bug] fix sub link hostname #140
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Apr 5, 2023
1 parent 38db94f commit e0a64a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/controller/sub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit e0a64a8

Please sign in to comment.