summary refs log tree commit diff
path: root/protocol
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-01-19 19:36:11 -0500
committerZach DeCook <zachdecook@librem.one>2023-01-19 19:36:11 -0500
commitdd3051a14f4f30f0942e01c2652fec0caff5e7e2 (patch)
tree441fd75e43a4aad99a995d20b67187ff6818f3bf /protocol
parenta4640ce383328c26698de01794538877b43f1c7f (diff)
downloadbrowset-dd3051a14f4f30f0942e01c2652fec0caff5e7e2.tar.gz
gemini: make errors text/plain
Diffstat (limited to 'protocol')
-rw-r--r--protocol/gemini.py4
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]