diff --git a/gemini-demo.py b/gemini-demo.py index 0770577..fab7c65 100644 --- a/gemini-demo.py +++ b/gemini-demo.py @@ -51,7 +51,7 @@ while True: context.check_hostname = False context.verify_mode = ssl.CERT_NONE s = context.wrap_socket(s, server_hostname = parsed_url.netloc) - s.sendall((parsed_url.path + '\r\n').encode("UTF-8")) + s.sendall((url + '\r\n').encode("UTF-8")) # Get header and check for redirects fp = s.makefile("rb") header = fp.readline()