3 ms·
This is fixable with a small patch, which implements enough seek to work with http. func (r *checksumReader) Seek(offset int64, whence int) (int64, error)
by tedunangst 2y ago
This is fixable with a small patch, which implements enough seek to work with http.
func (r *checksumReader) Seek(offset int64, whence int) (int64, error) {
if whence == io.SeekEnd {
return int64(r.f.FileHeader.UncompressedSize), nil
}
r2, _ := r.f.Open()
rr := r2.(*checksumReader)
*r = *rr
return 0, nil
}