Update server.py
This commit is contained in:
parent
958ea0d887
commit
93941d99c9
1 changed files with 1 additions and 4 deletions
|
@ -60,16 +60,13 @@ def relay():
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
recived = gemraw.decode()
|
recived = gemraw.decode().strip()
|
||||||
print(recived)
|
|
||||||
except:
|
except:
|
||||||
binary = True
|
binary = True
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue