Some testing stuff

This commit is contained in:
Miroslav Stampar
2020-01-07 23:49:45 +01:00
parent 57f17794c4
commit 0e9dd9b0be
6 changed files with 66 additions and 135 deletions

View File

@@ -191,7 +191,7 @@ class ReqHandler(BaseHTTPRequestHandler):
length = int(self.headers.get("Content-length", 0))
if length:
data = self.rfile.read(length)
data = unquote_plus(data.decode(UNICODE_ENCODING))
data = unquote_plus(data.decode(UNICODE_ENCODING, "ignore"))
self.data = data
self.do_REQUEST()