From 023a048f52b5bf8c4b715285245a129f04e05a8c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 9 May 2023 15:34:36 +0800 Subject: Make repository response support HTTP range request (#24592) Replace #20480 Replace #18448 Close #16414 --- modules/lfs/content_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/lfs') diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go index 53fac4ab85..daf8c6cfdd 100644 --- a/modules/lfs/content_store.go +++ b/modules/lfs/content_store.go @@ -18,9 +18,9 @@ import ( var ( // ErrHashMismatch occurs if the content has does not match OID - ErrHashMismatch = errors.New("Content hash does not match OID") + ErrHashMismatch = errors.New("content hash does not match OID") // ErrSizeMismatch occurs if the content size does not match - ErrSizeMismatch = errors.New("Content size does not match") + ErrSizeMismatch = errors.New("content size does not match") ) // ContentStore provides a simple file system based storage. @@ -105,7 +105,7 @@ func (s *ContentStore) Verify(pointer Pointer) (bool, error) { } // ReadMetaObject will read a git_model.LFSMetaObject and return a reader -func ReadMetaObject(pointer Pointer) (io.ReadCloser, error) { +func ReadMetaObject(pointer Pointer) (io.ReadSeekCloser, error) { contentStore := NewContentStore() return contentStore.Get(pointer) } -- cgit v1.2.3