Now returning valid tracking image. Fixes #202

pull/233/head
Jordan Wright 2016-03-18 23:35:07 -05:00
parent 52b9eda3b2
commit b10c4b3d3a
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ func PhishTracker(w http.ResponseWriter, r *http.Request) {
// Don't update the status if the user already clicked the link // Don't update the status if the user already clicked the link
// or submitted data to the campaign // or submitted data to the campaign
if rs.Status == models.STATUS_SUCCESS { if rs.Status == models.STATUS_SUCCESS {
w.Write([]byte("")) http.ServeFile(w, r, "static/images/pixel.png")
return return
} }
err = rs.UpdateStatus(models.EVENT_OPENED) err = rs.UpdateStatus(models.EVENT_OPENED)
@ -134,7 +134,7 @@ func PhishTracker(w http.ResponseWriter, r *http.Request) {
if err != nil { if err != nil {
Logger.Println(err) 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 // PhishHandler handles incoming client connections and registers the associated actions performed

BIN
static/images/pixel.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B