diff --git a/internal/handler/subscribe.go b/internal/handler/subscribe.go index 790ed1b..2db3297 100644 --- a/internal/handler/subscribe.go +++ b/internal/handler/subscribe.go @@ -37,7 +37,8 @@ func SubscribeHandler(svcCtx *svc.ServiceContext) func(c *gin.Context) { c.Abort() return } - if short != domainArr[0] { + if strings.ToLower(short) != strings.ToLower(domainArr[0]) { + logger.Debugf("[SubscribeHandler] Generate short token failed, short: %s, domain: %s", short, domainArr[0]) c.String(http.StatusForbidden, "Access denied") c.Abort() return