diff options
author | Shuanglei Tao <tsl0922@gmail.com> | 2017-06-28 14:08:47 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-28 14:08:47 +0800 |
commit | d389ed25a53a2e45a9a820f432772f40594babc0 (patch) | |
tree | 17c6359fb05738baa3095aeb03d426b859c9888a /routers | |
parent | 32fc44aa83e61acb93dbdcf6d47dfadc69f5c044 (diff) | |
download | gitea-d389ed25a53a2e45a9a820f432772f40594babc0.tar.gz gitea-d389ed25a53a2e45a9a820f432772f40594babc0.zip |
Fix: `http: multiple response.WriteHeader calls` (#2038)
We can't change the http status code here, because the response has been written.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/http.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index 0bea513eff..b7e83536ca 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -381,7 +381,6 @@ func serviceRPC(h serviceHandler, service string) { cmd.Stderr = &stderr if err := cmd.Run(); err != nil { log.GitLogger.Error(2, "fail to serve RPC(%s): %v - %v", service, err, stderr) - h.w.WriteHeader(http.StatusInternalServerError) return } } |