mirror of
https://github.com/rclone/rclone.git
synced 2025-03-17 20:27:52 +02:00
b2: Fix seek producing corrupted file errors
This commit is contained in:
parent
d033e92234
commit
98804cb860
4
b2/b2.go
4
b2/b2.go
@ -1121,6 +1121,10 @@ func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error) {
|
||||
fs.Debug(o, "Reading sha1 from info - %q", o.sha1)
|
||||
}
|
||||
}
|
||||
// Don't check length or hash on partial content
|
||||
if resp.StatusCode == http.StatusPartialContent {
|
||||
return resp.Body, nil
|
||||
}
|
||||
return newOpenFile(o, resp), nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user