https
This commit is contained in:
parent
271a3579a1
commit
d350e22c50
|
|
@ -124,7 +124,7 @@ func (s *Minio) Url(objectName string, expire time.Duration, https ...bool) stri
|
||||||
}
|
}
|
||||||
|
|
||||||
baseUrl := s.config.BaseUrl
|
baseUrl := s.config.BaseUrl
|
||||||
if len(https) > 1 && https[0] {
|
if len(https) > 0 && https[0] {
|
||||||
if strings.HasPrefix(baseUrl, "http://") {
|
if strings.HasPrefix(baseUrl, "http://") {
|
||||||
baseUrl = "https://" + strings.TrimPrefix(baseUrl, "http://")
|
baseUrl = "https://" + strings.TrimPrefix(baseUrl, "http://")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue