Skip to content
Snippets Groups Projects
Commit 5d17134f authored by gbe's avatar gbe
Browse files

Remove favicon handler from index

It's covered by a dedicated handler now.
parent 9b23496a
No related branches found
No related tags found
No related merge requests found
...@@ -12,11 +12,6 @@ import ( ...@@ -12,11 +12,6 @@ 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
}
logRequest(r) logRequest(r)
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