remove false alarm error

This commit is contained in:
Victor Vieux 2013-10-16 19:38:12 +00:00
parent 104a86936a
commit 0e64a4d7e7
1 changed files with 1 additions and 1 deletions

2
api.go
View File

@ -349,7 +349,7 @@ func postCommit(srv *Server, version float64, w http.ResponseWriter, r *http.Req
return err
}
config := &Config{}
if err := json.NewDecoder(r.Body).Decode(config); err != nil {
if err := json.NewDecoder(r.Body).Decode(config); err != nil && err.Error() != "EOF" {
utils.Errorf("%s", err)
}
repo := r.Form.Get("repo")