Use www.brow.sh's HTML service welcome page
It's nice to see the big Browsh logo rather just some boring plain text
This commit is contained in:
parent
8d8168bfc6
commit
26fa4cb3de
|
@ -88,18 +88,11 @@ func handleHTTPServerRequest(w http.ResponseWriter, r *http.Request) {
|
||||||
message = "Welcome to the Browsh plain text client.\n" +
|
message = "Welcome to the Browsh plain text client.\n" +
|
||||||
"You can use it by appending URLs like this;\n" +
|
"You can use it by appending URLs like this;\n" +
|
||||||
"https://html.brow.sh/https://www.brow.sh"
|
"https://html.brow.sh/https://www.brow.sh"
|
||||||
} else {
|
|
||||||
message = "<html>" +
|
|
||||||
"Welcome to the Browsh HTML web client.<br />" +
|
|
||||||
"Type a URL after 'html.brow.sh' in your URL bar, eg;<br />" +
|
|
||||||
"<a href=\"https://html.brow.sh/https://www.brow.sh\">" +
|
|
||||||
"https://html.brow.sh/https://www.brow.sh" +
|
|
||||||
"</a><br />" +
|
|
||||||
"</html>"
|
|
||||||
}
|
|
||||||
io.WriteString(w, message)
|
io.WriteString(w, message)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
urlForBrowsh = "https://www.brow.sh/html-service-welcome"
|
||||||
|
}
|
||||||
if urlForBrowsh == "robots.txt" {
|
if urlForBrowsh == "robots.txt" {
|
||||||
message = "User-agent: *\nAllow: /$\nDisallow: /\n"
|
message = "User-agent: *\nAllow: /$\nDisallow: /\n"
|
||||||
io.WriteString(w, message)
|
io.WriteString(w, message)
|
||||||
|
|
Loading…
Reference in a new issue