Update server.py
This commit is contained in:
parent
8a19ff1828
commit
83a631591e
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ def relay():
|
||||||
for i in bytes(gemraw):
|
for i in bytes(gemraw):
|
||||||
try:
|
try:
|
||||||
if not found:
|
if not found:
|
||||||
mtype += i
|
mtype.append(i)
|
||||||
else:
|
else:
|
||||||
gemcontent_binary += 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().split(" ")[1].split(";")[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue