diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-01-19 19:36:11 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-01-19 19:36:11 -0500 |
| commit | dd3051a14f4f30f0942e01c2652fec0caff5e7e2 (patch) | |
| tree | 441fd75e43a4aad99a995d20b67187ff6818f3bf /protocol/gemini.py | |
| parent | a4640ce383328c26698de01794538877b43f1c7f (diff) | |
| download | browset-dd3051a14f4f30f0942e01c2652fec0caff5e7e2.tar.gz | |
gemini: make errors text/plain
Diffstat (limited to 'protocol/gemini.py')
| -rw-r--r-- | protocol/gemini.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol/gemini.py b/protocol/gemini.py index ec51b7c..b4cccbe 100644 --- a/protocol/gemini.py +++ b/protocol/gemini.py @@ -26,12 +26,12 @@ class GeminiProtocol(): s.sendall((url + '\r\n').encode("UTF-8")) fp = s.makefile("rb") except: - return ("error",["error"]) + return ("text/error",["error"]) header = fp.readline() header = header.decode("UTF-8").strip() if header[0:1] == "2": return (header[3:], fp) - return ("error", [header]) + return ("text/error", [header]) def _gethostname(url): return url.split('/')[2] |
