示例#1
0
文件: blossom.go 项目: kura/blossom
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
文件: blossom.go 项目: kura/blossom
/* 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)
}