mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:05:05 +08:00
swift: use FixRangeOption to fix 0 length files via the VFS
This commit is contained in:
parent
95af1f9ccf
commit
0be14120e4
|
@ -1028,6 +1028,7 @@ func (o *Object) Storable() bool {
|
|||
|
||||
// Open an object for read
|
||||
func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) {
|
||||
fs.FixRangeOption(options, o.size)
|
||||
headers := fs.OpenOptionHeaders(options)
|
||||
_, isRanging := headers["Range"]
|
||||
err = o.fs.pacer.Call(func() (bool, error) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user