mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
fix some typo
This commit is contained in:
@@ -50,11 +50,11 @@ func (oa *oauth2controller) getCommonOauth2Config(c *gin.Context) *oauth2.Config
|
||||
}
|
||||
|
||||
func (oa *oauth2controller) getRedirectURL(c *gin.Context) string {
|
||||
schame := "http://"
|
||||
scheme := "http://"
|
||||
if strings.HasPrefix(c.Request.Referer(), "https://") {
|
||||
schame = "https://"
|
||||
scheme = "https://"
|
||||
}
|
||||
return schame + c.Request.Host + "/oauth2/callback"
|
||||
return scheme + c.Request.Host + "/oauth2/callback"
|
||||
}
|
||||
|
||||
func (oa *oauth2controller) login(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user