mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
b2: fix upload url not being refreshed properly #825
This commit is contained in:
parent
a6b4065e13
commit
a4bf22e620
5
b2/b2.go
5
b2/b2.go
@ -1280,7 +1280,10 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo) (err error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer o.fs.returnUploadURL(upload)
|
||||
defer func() {
|
||||
// return it like this because we might nil it out
|
||||
o.fs.returnUploadURL(upload)
|
||||
}()
|
||||
|
||||
// Headers for upload file
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user