diff --git a/server.py b/server.py index cac601e..6e9d7e1 100644 --- a/server.py +++ b/server.py @@ -65,10 +65,11 @@ def relay(): except: binary = True print(traceback.format_exc()) - print(mimetype) 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