mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-01 10:00:19 +08:00
feat: fix Tencent Cloud OSS storage connect incorrect issue (#1752)
* fix: fix Tencent Cloud OSS storage connect incorrect * Update provider.go --------- Co-authored-by: hsluoyz <hsluoyz@qq.com>
This commit is contained in:
@ -259,3 +259,11 @@ func maskString(str string) string {
|
||||
return fmt.Sprintf("%c%s%c", str[0], strings.Repeat("*", len(str)-2), str[len(str)-1])
|
||||
}
|
||||
}
|
||||
|
||||
// GetEndPoint remove scheme from url
|
||||
func GetEndPoint(endpoint string) string {
|
||||
for _, prefix := range []string{"https://", "http://"} {
|
||||
endpoint = strings.TrimPrefix(endpoint, prefix)
|
||||
}
|
||||
return endpoint
|
||||
}
|
||||
|
Reference in New Issue
Block a user