server: fix out of bounds exception on model download (#8746)

This commit is contained in:
William 2025-02-04 21:52:47 -05:00 committed by GitHub
parent 63f0269f7f
commit d8932c55e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,9 +170,9 @@ func (b *blobDownload) Prepare(ctx context.Context, requestURL *url.URL, opts *r
offset += size
}
} else {
slog.Info(fmt.Sprintf("downloading %s in %d %s part(s)", b.Digest[7:19], len(b.Parts), format.HumanBytes(b.Parts[0].Size)))
}
slog.Info(fmt.Sprintf("downloading %s in %d %s part(s)", b.Digest[7:19], len(b.Parts), format.HumanBytes(b.Parts[0].Size)))
return nil
}