Skip to content

Commit

Permalink
Use www.brow.sh's HTML service welcome page
Browse files Browse the repository at this point in the history
It's nice to see the big Browsh logo rather just some boring plain text
  • Loading branch information
tombh committed Jul 8, 2018
1 parent 8d8168b commit 26fa4cb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions interfacer/src/browsh/raw_text_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,10 @@ func handleHTTPServerRequest(w http.ResponseWriter, r *http.Request) {
message = "Welcome to the Browsh plain text client.\n" +
"You can use it by appending URLs like this;\n" +
"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)
return
}
io.WriteString(w, message)
return
urlForBrowsh = "https://www.brow.sh/html-service-welcome"
}
if urlForBrowsh == "robots.txt" {
message = "User-agent: *\nAllow: /$\nDisallow: /\n"
Expand Down

0 comments on commit 26fa4cb

Please sign in to comment.