Expose ignores in the UI

This commit is contained in:
Audrius Butkevicius
2014-09-19 21:02:53 +01:00
parent d96ce23451
commit b084b4faaf
5 changed files with 78 additions and 2 deletions

View File

@@ -479,6 +479,7 @@ func restPostIgnores(m *model.Model, w http.ResponseWriter, r *http.Request) {
var data map[string][]string
err := json.NewDecoder(r.Body).Decode(&data)
r.Body.Close()
if err != nil {
http.Error(w, err.Error(), 500)
return