From 6a7ebefafc5b1d3d42236f84c3fff9fe86985892 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 5 Sep 2022 23:17:11 +0200 Subject: [PATCH] core/MMBot.py --- core/MMBot.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/MMBot.py b/core/MMBot.py index 3ece80a..0cfa284 100644 --- a/core/MMBot.py +++ b/core/MMBot.py @@ -501,18 +501,6 @@ class MMBot(): self.handled = False data = None - if self.headers["Content-Type"] == "application/x-www-form-urlencoded": - data = urllib.parse.parse_qs(self.rfile.read(int(self.headers["Content-Length"])).decode("utf-8"), keep_blank_values=True) - # only accept first occurence - data = {k: v[0] for k, v in data.items()} - - elif self.headers["Content-Type"] == "application/json": - data = json.loads(self.rfile.read(int(self.headers["Content-Length"])).decode("utf-8")) - -# else: -# self.respond_public(415) -# return - logger.debug("do_public_GET(): request incomming.") try: module = 'not yet known' -- 2.43.0