Update server.py

This commit is contained in:
Nova Cat 2025-01-14 15:48:42 -08:00
parent 958ea0d887
commit 93941d99c9

View file

@ -60,16 +60,13 @@ def relay():
except:
pass
try:
recived = gemraw.decode()
print(recived)
recived = gemraw.decode().strip()
except:
binary = True
print(traceback.format_exc())
if binary:
return Response(bytes(gemcontent_binary), mimetype="text/gemini" if mimetype=="" else mimetype)
print(recived)
received = received.replace("\r", "")
print(recived)
firstline = True
redirected = False
gemtext = True