2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 03:18:55 +00:00

swift: Remove check for byte range

Closes #1084
Closes #1094
This commit is contained in:
Alexander Neumann 2017-07-21 20:45:12 +02:00
parent 3830117735
commit 626d020e62

View File

@ -90,16 +90,6 @@ func Open(cfg Config) (restic.Backend, error) {
return nil, errors.Wrap(err, "conn.Container")
}
// check that the server supports byte ranges
_, hdr, err := be.conn.Account()
if err != nil {
return nil, errors.Wrap(err, "Account()")
}
if hdr["Accept-Ranges"] != "bytes" {
return nil, errors.New("backend does not support byte range")
}
return be, nil
}