fix some typo

This commit is contained in:
Akkia
2022-04-10 20:28:22 +08:00
parent 97ef37ac56
commit 91a1e3fe22
4 changed files with 6 additions and 6 deletions

View File

@@ -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) {