box: fix RangeOption support in Open #1825

This commit is contained in:
Nick Craig-Wood 2018-01-22 17:05:47 +00:00
parent d876392d15
commit e44dc2b14d

View File

@ -960,6 +960,7 @@ func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error) {
if o.id == "" {
return nil, errors.New("can't download - no id")
}
fs.FixRangeOption(options, o.size)
var resp *http.Response
opts := rest.Opts{
Method: "GET",