Compare commits
No commits in common. "f4c1cdb28331e11315cc5f009614f3d54c7289b1" and "1e1d9660235bc51530d676fb18d55f45624b2d5a" have entirely different histories.
f4c1cdb283
...
1e1d966023
|
|
@ -124,7 +124,7 @@ func (s *Minio) Url(objectName string, expire time.Duration, https ...bool) stri
|
|||
}
|
||||
|
||||
baseUrl := s.config.BaseUrl
|
||||
if len(https) > 0 && https[0] {
|
||||
if len(https) > 1 && https[0] {
|
||||
if strings.HasPrefix(baseUrl, "http://") {
|
||||
baseUrl = "https://" + strings.TrimPrefix(baseUrl, "http://")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue