This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
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: `http: multiple response.WriteHeader calls` (
#2038
)
We can't change the http status code here, because the response has been written.
tags/v1.2.0-rc1
Shuanglei Tao
Lunny Xiao
8 years ago
parent
96b13d94ec
commit
93a200f0a4
1 changed files
with
0 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
routers/repo/http.go
+ 0
- 1
routers/repo/http.go
View File
@@ -381,7 +381,6 @@ func serviceRPC(h serviceHandler, service string) {
cmd.Stderr = &stderr
cmd.Stderr = &stderr
if err := cmd.Run(); err != nil {
if err := cmd.Run(); err != nil {
log.GitLogger.Error(2, "fail to serve RPC(%s): %v - %v", service, err, stderr)
log.GitLogger.Error(2, "fail to serve RPC(%s): %v - %v", service, err, stderr)
h.w.WriteHeader(http.StatusInternalServerError)
return
return
}
}
}
}
Write
Preview
Loading…
Cancel
Save