diff --git a/server.py b/server.py index 7b0e745..20a8c0b 100644 --- a/server.py +++ b/server.py @@ -68,7 +68,7 @@ def relay(): return f'\n
The specified Gemini server returned a status of: {i}
' else: firstline = False - if i.split(" ")[1] != "text/gemini": + if i.split(" ")[1].split(";")[0] != "text/gemini": print("Unrecognised type: " + i.split(" ")[1]) return Response(" ".join(received.split("\n")[1:]), mimetype=i.split(" ")[1]) else: