kopia lustrzana https://github.com/browsh-org/browsh
Redirect HTML service requests for favicon.ico
... to a real faviconpull/114/head
rodzic
85affab04d
commit
be098c0673
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue