Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
jiangyong27 | 55aa6f3214 |
|
@ -113,7 +113,7 @@ func (s *Minio) Url(objectName string, expire time.Duration) string {
|
|||
return err.Error()
|
||||
}
|
||||
|
||||
if expire > time.Hour*24*7 {
|
||||
if expire > time.Hour*24*7 || expire == -1 {
|
||||
expire = time.Hour * 24 * 7
|
||||
}
|
||||
var params url.Values
|
||||
|
|
Loading…
Reference in New Issue