summary refs log tree commit diff
path: root/protocol
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-01-28 17:22:30 -0500
committerZach DeCook <zachdecook@librem.one>2023-01-28 17:22:30 -0500
commit241528e32b7614598badcca42b4faee23217bf27 (patch)
tree404ff43a1fe5aa8d0bd04774724a86f7a875f29a /protocol
parent88eac6043213185757075b6d182d5398ac412031 (diff)
downloadbrowset-241528e32b7614598badcca42b4faee23217bf27.tar.gz
Top button: fix behavior by using modified urllib.parse
Diffstat (limited to 'protocol')
-rw-r--r--protocol/gemini.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/protocol/gemini.py b/protocol/gemini.py
index 05f86ce..59021e1 100644
--- a/protocol/gemini.py
+++ b/protocol/gemini.py
@@ -2,19 +2,6 @@ import socket
 import ssl
 
 class GeminiProtocol():
-    def relativeURL(path, prevurl):
-        if path.startswith("/"):
-            url = '/'.join(prevurl.split("/")[0:3])+path
-        else:
-            base = prevurl
-            if base.count('/') >= 3:
-                base = '/'.join(prevurl.split('/')[0:-1])
-            while path.startswith("../"):
-                base = '/'.join(base.split('/')[0:-1])
-                path = path.replace("../","",1)
-            url = base + '/' + path
-        return url
-
     def get(url):
         hostname = _gethostname(url)
         try: