Update server.py

This commit is contained in:
Nova Cat 2025-01-13 16:28:10 -08:00
parent 8dc5d8398c
commit 9a07365df8

View file

@ -69,6 +69,7 @@ def relay():
else:
firstline = False
if i.split(" ")[1] != "text/gemini":
print("Unrecognised type: " i.split(" ")[1])
return Response(" ".join(received.split("\n")[1:]), mimetype=i.split(" ")[1])
else:
if i[0:2] == "# ":