Compare commits
2 Commits
1e1d966023
...
f4c1cdb283
| Author | SHA1 | Date |
|---|---|---|
|
|
f4c1cdb283 | |
|
|
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