forked from solderpunk/AV-98
should fix gopher requests
This commit is contained in:
parent
25b2c4ef53
commit
5b0e63b5a5
|
@ -5,6 +5,7 @@
|
|||
- "set accept_bad_ssl_certificates True" now also used for Gemini expired certificates
|
||||
- Add missing chardet module (Sotiris Papatheodorou)
|
||||
- Fix merging dictionaries with common keys (Sotiris Papatheodorou)
|
||||
- Fix Gopher requests (the starting "/" should be removed)
|
||||
|
||||
## 1.9.2 - March 13th 2023
|
||||
- Switch from setup.py to flit (Anna cybertailor Vyalkova)
|
||||
|
|
|
@ -2301,10 +2301,11 @@ class GeminiClient(cmd.Cmd):
|
|||
except OSError as e:
|
||||
err = e
|
||||
if parsed.query:
|
||||
request = selector + "\t" + parsed.query
|
||||
request = selector[1:] + "\t" + parsed.query
|
||||
else:
|
||||
request = selector
|
||||
request = selector[1:]
|
||||
request += "\r\n"
|
||||
print("request: %s"%request)
|
||||
s.sendall(request.encode("UTF-8"))
|
||||
response = s.makefile("rb").read()
|
||||
# Transcode response into UTF-8
|
||||
|
|
Loading…
Reference in New Issue