Compare commits

..

2 Commits

Author SHA1 Message Date
jiangyong f4c1cdb283 Merge branch 'master' of git.u8t.cn:open/gosdk 2026-03-27 23:45:37 +08:00
jiangyong d350e22c50 https 2026-03-27 23:45:32 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (s *Minio) Url(objectName string, expire time.Duration, https ...bool) stri
}
baseUrl := s.config.BaseUrl
if len(https) > 1 && https[0] {
if len(https) > 0 && https[0] {
if strings.HasPrefix(baseUrl, "http://") {
baseUrl = "https://" + strings.TrimPrefix(baseUrl, "http://")
}