]> source.dussan.org Git - gitea.git/commit
Close file on invalid range (Addition to #15166) (#15268)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Tue, 6 Apr 2021 13:22:34 +0000 (15:22 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Apr 2021 13:22:34 +0000 (21:22 +0800)
commit5f18404045f1979fab34583277ad2a1bfab81ed9
treefcb23d5303749901dbda0e9c67d198425beabfdf
parent1ba8b95eb472c5ec089ac947acdf822457d33378
Close file on invalid range (Addition to #15166) (#15268)

* Close file on invalid range.

* Close on seek error

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Moved 'Seek' into server.

* io.ReadSeekCloser is only available in Go 1.16

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
modules/lfs/content_store.go
modules/lfs/pointers.go
modules/lfs/server.go