From 1adfc323b4f91927c0d4c81258aff333e1512ecf Mon Sep 17 00:00:00 2001 From: Glenn Wilkinson Date: Wed, 12 Aug 2020 12:30:41 +0100 Subject: [PATCH] Small fixes --- controllers/phish.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/phish.go b/controllers/phish.go index 1472cd49..dc9a4a2e 100644 --- a/controllers/phish.go +++ b/controllers/phish.go @@ -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) } }