Update server.py

This commit is contained in:
Nova Cat 2025-01-14 15:47:39 -08:00
parent 4d5b417b6e
commit 958ea0d887

View file

@ -65,10 +65,11 @@ def relay():
except: except:
binary = True binary = True
print(traceback.format_exc()) print(traceback.format_exc())
print(mimetype)
if binary: if binary:
return Response(bytes(gemcontent_binary), mimetype="text/gemini" if mimetype=="" else mimetype) return Response(bytes(gemcontent_binary), mimetype="text/gemini" if mimetype=="" else mimetype)
print(recived)
received = received.replace("\r", "") received = received.replace("\r", "")
print(recived)
firstline = True firstline = True
redirected = False redirected = False
gemtext = True gemtext = True