Пример #1
0
func handleOpen(args handler.RegexpArgs, w http.ResponseWriter, r *http.Request) {
	analytics.ParseRequest(args, r).Print()
	//log.Println(analytics.ParseRequest(args, r))
	w.Header().Set("Content-Type", "image/gif")
	empty_gif := []byte{
		71, 73, 70, 56, 57, 97, 1, 0, 1, 0, 128, 255, 0, 192, 192, 192, 0, 0,
		0, 33, 249, 4, 1, 0, 0, 0, 0, 44, 0, 0, 0, 0, 1, 0, 1, 0, 0, 2, 2, 68,
		1, 0, 59,
	}
	w.Write(empty_gif)
}
Пример #2
0
/* Taz's email web version handler */
func handleWebVersion(args handler.RegexpArgs, w http.ResponseWriter, r *http.Request) {
	analytics.ParseRequest(args, r).Print()
	// I have no idea what we should here, just redirection
	http.Redirect(w, r, args["link"], 301)
}