From cba503e4bf30c926bfad0e5a85b91b1b57394c72 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 11 Nov 2024 23:15:22 -0800 Subject: [PATCH] patch --- sweebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sweebot.py b/sweebot.py index c9c0569..293912e 100644 --- a/sweebot.py +++ b/sweebot.py @@ -610,7 +610,7 @@ while True: try: e = get(i, headers=headers, timeout=10) header = e.headers - content_type = header.get('content-type').split(" ")[0] + content_type = header.get('content-type').split(";")[0] content_len = header.get('Content-length') if content_type in allowedparse: if e.ok: @@ -627,7 +627,7 @@ while True: elif i[:7] == "http://": e = get(i, headers=headers, timeout=10) header = e.headers - content_type = header.get('content-type').split(" ")[0] + content_type = header.get('content-type').split(";")[0] content_len = header.get('Content-length') if content_type in allowedparse: if e.ok: