Update server.py
This commit is contained in:
parent
83a631591e
commit
d4f36a710a
1 changed files with 2 additions and 3 deletions
|
@ -56,10 +56,9 @@ def relay():
|
||||||
gemcontent_binary.append(i)
|
gemcontent_binary.append(i)
|
||||||
if "\n" in bytes(mtype).decode() and not found:
|
if "\n" in bytes(mtype).decode() and not found:
|
||||||
ok = bytes(mtype).decode().split(" ")[0][0] == "2"
|
ok = bytes(mtype).decode().split(" ")[0][0] == "2"
|
||||||
mimetype = bytes(mtype).decode().split(" ")[1].split(";")[0]
|
mimetype = bytes(mtype).decode().replace("\r", "").split("\n")[0].split(" ")[1].split(";")[0]
|
||||||
except:
|
except:
|
||||||
binary = True
|
pass
|
||||||
print(traceback.format_exc())
|
|
||||||
try:
|
try:
|
||||||
if not binary:
|
if not binary:
|
||||||
recived = gemraw.decode()
|
recived = gemraw.decode()
|
||||||
|
|
Loading…
Add table
Reference in a new issue