From be098c06734131cf3444a9caefb563c3994344a0 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Wed, 11 Jul 2018 16:46:33 +0800 Subject: [PATCH] Redirect HTML service requests for favicon.ico ... to a real favicon --- interfacer/src/browsh/raw_text_server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interfacer/src/browsh/raw_text_server.go b/interfacer/src/browsh/raw_text_server.go index d9043cf..d421c20 100644 --- a/interfacer/src/browsh/raw_text_server.go +++ b/interfacer/src/browsh/raw_text_server.go @@ -90,6 +90,10 @@ func handleHTTPServerRequest(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "https://" + r.Host + "/" + urlForBrowsh, 301) return } + if urlForBrowsh == "favicon.ico" { + http.Redirect(w, r, "https://www.brow.sh/assets/favicon-16x16.png", 301) + return + } w.Header().Set("Cache-Control", "public, max-age=600") if (isDisallowedURL(urlForBrowsh)) { http.Redirect(w, r, "/", 301)