Skip to content

Commit

Permalink
Redirect HTML service requests for favicon.ico
Browse files Browse the repository at this point in the history
... to a real favicon
  • Loading branch information
tombh committed Jul 11, 2018
1 parent 85affab commit be098c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfacer/src/browsh/raw_text_server.go
Expand Up @@ -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)
Expand Down

0 comments on commit be098c0

Please sign in to comment.