Small fixes

pull/1929/head
Glenn Wilkinson 2020-08-12 12:30:41 +01:00
parent ee2d7398a7
commit 1adfc323b4
1 changed files with 2 additions and 3 deletions

View File

@ -146,10 +146,9 @@ func (ps *PhishingServer) CustomEventHandler(w http.ResponseWriter, r *http.Requ
err = rs.HandleCustomEvent(d)
if err != nil {
log.Error(err)
w.Write([]byte(err.Error()))
http.NotFound(w, r)
} else {
w.Write([]byte("Event received"))
w.WriteHeader(http.StatusNoContent)
}
}