Compare commits

..

No commits in common. "f4c1cdb28331e11315cc5f009614f3d54c7289b1" and "1e1d9660235bc51530d676fb18d55f45624b2d5a" have entirely different histories.

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) > 0 && https[0] {
if len(https) > 1 && https[0] {
if strings.HasPrefix(baseUrl, "http://") {
baseUrl = "https://" + strings.TrimPrefix(baseUrl, "http://")
}