diff --git a/server.py b/server.py index a631972..045c96f 100644 --- a/server.py +++ b/server.py @@ -51,7 +51,7 @@ def relay(): try: if "\r" in bytes(gemraw).decode() and not found: found = True - mimetype = bytes(gemraw).decode()[:-1].split(" ")[1] + mimetype = bytes(gemraw).decode()[:-1].split(" ")[1].split(";")[0] ok = bytes(gemraw).decode()[:-1].split(" ")[0][0] == 2 except: pass