From daab0735e45959b2c646fba9796dcb4e198da7f7 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 15:27:06 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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