Compare commits

...

1 Commits
rzh ... master

Author SHA1 Message Date
jiangyong27 55aa6f3214 expire 2024-12-30 11:51:30 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ func (s *Minio) Url(objectName string, expire time.Duration) string {
return err.Error() return err.Error()
} }
if expire > time.Hour*24*7 { if expire > time.Hour*24*7 || expire == -1 {
expire = time.Hour * 24 * 7 expire = time.Hour * 24 * 7
} }
var params url.Values var params url.Values