diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/download.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/download.go b/routers/repo/download.go index 85e9fc64c9..8b1bb7f952 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -19,7 +19,7 @@ import ( func ServeData(ctx *context.Context, name string, reader io.Reader) error { buf := make([]byte, 1024) n, _ := reader.Read(buf) - if n > 0 { + if n >= 0 { buf = buf[:n] } |