This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix empty file download (
#1506
)
tags/v1.2.0-rc1
Lauris BH
Lunny Xiao
8 years ago
parent
86ef7a64db
commit
9320b1b81c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
routers/repo/download.go
+ 1
- 1
routers/repo/download.go
View File
@@ -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]
}
Write
Preview
Loading…
Cancel
Save