diff --git a/api/generic.go b/api/generic.go index 8d7606f..d8dbf6f 100644 --- a/api/generic.go +++ b/api/generic.go @@ -201,6 +201,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { if save == nil { w.WriteHeader(http.StatusOK) + return } response, err := json.Marshal(save)