Fix builder shows "http: multiple response.WriteHeader calls" (#1029)

This commit is contained in:
Ta-Ching Chen
2018-12-20 01:29:15 +08:00
committed by GitHub
parent 0a135173b4
commit 85f8dcc2b2
+1 -1
View File
@@ -483,8 +483,8 @@ func (fetcher *Fetcher) UploadHandler(w http.ResponseWriter, r *http.Request) {
log.Println("Completed upload request")
w.Header().Add("Content-Type", "application/json")
w.Write(rBody)
w.WriteHeader(http.StatusOK)
w.Write(rBody)
}
func (fetcher *Fetcher) rename(src string, dst string) error {