Factors out resolveBlobPath, renames expires -> expiry
This commit is contained in:
parent
cc3c648f44
commit
f22ad79d36
4 changed files with 51 additions and 62 deletions
|
@ -588,7 +588,7 @@ func (d *Driver) URLFor(path string, options map[string]interface{}) (string, er
|
|||
}
|
||||
|
||||
expiresTime := time.Now().Add(20 * time.Minute)
|
||||
expires, ok := options["expires"]
|
||||
expires, ok := options["expiry"]
|
||||
if ok {
|
||||
et, ok := expires.(time.Time)
|
||||
if ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue