Browse Source

Updates gophermap rendering to support gemini urls as h URL:... style links

pull/40/head
sloumdrone 2 years ago
parent
commit
5114ac1a15
  1. 2
      gopher/gopher.go

2
gopher/gopher.go

@ -171,7 +171,7 @@ func buildLink(host, port, gtype, resource string) string {
case "h":
u, tf := isWebLink(resource)
if tf {
if len(u) > 4 && string(u[:4]) == "http" {
if strings.Index(u, "://") > 0 {
return u
} else {
return fmt.Sprintf("http://%s", u)

Loading…
Cancel
Save