fix for gopher selectors

This commit is contained in:
Lionel Dricot 2022-02-16 09:45:38 +01:00
parent 45e894b041
commit b9e0cf4b0b
1 changed files with 2 additions and 0 deletions

View File

@ -430,6 +430,8 @@ class GopherRenderer(AbstractRenderer):
if itemtype == "h" and path.startswith("URL:"):
url = path[4:]
else:
if not path.startswith("/"):
path = "/"+path
url = "gopher://%s%s/%s%s" %(host,port,itemtype,path)
linkline = url + " " + name
links.append(linkline)