mirror of https://github.com/gophish/gophish
Small fixes
parent
ee2d7398a7
commit
1adfc323b4
|
@ -146,10 +146,9 @@ func (ps *PhishingServer) CustomEventHandler(w http.ResponseWriter, r *http.Requ
|
||||||
err = rs.HandleCustomEvent(d)
|
err = rs.HandleCustomEvent(d)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
w.Write([]byte(err.Error()))
|
http.NotFound(w, r)
|
||||||
} else {
|
} else {
|
||||||
|
w.WriteHeader(http.StatusNoContent)
|
||||||
w.Write([]byte("Event received"))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue