Skip to content
Snippets Groups Projects
Commit 3d8d3f61 authored by gbe's avatar gbe
Browse files

Skip favicon

parent 8ea06098
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,11 @@ import ( ...@@ -12,6 +12,11 @@ import (
var indexTemplate = template.Must(template.ParseFS(templateFS, "templates/base.tpl", "templates/index.tpl")) var indexTemplate = template.Must(template.ParseFS(templateFS, "templates/base.tpl", "templates/index.tpl"))
func (h Handler) index(w http.ResponseWriter, r *http.Request) { func (h Handler) index(w http.ResponseWriter, r *http.Request) {
if r.URL.String() == "/favicon.ico" {
http.Error(w, "nothing to see here", http.StatusNotFound)
return
}
log.Println("handling", r.Method, r.URL, "from", r.RemoteAddr) log.Println("handling", r.Method, r.URL, "from", r.RemoteAddr)
if r.Method == "GET" { if r.Method == "GET" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment