diff --git a/controllers/route.go b/controllers/route.go index e95f63ed..5f350238 100644 --- a/controllers/route.go +++ b/controllers/route.go @@ -113,7 +113,7 @@ func PhishTracker(w http.ResponseWriter, r *http.Request) { // Don't update the status if the user already clicked the link // or submitted data to the campaign if rs.Status == models.STATUS_SUCCESS { - w.Write([]byte("")) + http.ServeFile(w, r, "static/images/pixel.png") return } err = rs.UpdateStatus(models.EVENT_OPENED) @@ -134,7 +134,7 @@ func PhishTracker(w http.ResponseWriter, r *http.Request) { if err != nil { Logger.Println(err) } - w.Write([]byte("")) + http.ServeFile(w, r, "static/images/pixel.png") } // PhishHandler handles incoming client connections and registers the associated actions performed diff --git a/static/images/pixel.png b/static/images/pixel.png new file mode 100644 index 00000000..1914264c Binary files /dev/null and b/static/images/pixel.png differ