Fix function calls...

This commit is contained in:
Kumi 2022-04-19 13:06:09 +02:00
parent 19834f6a5d
commit 0b045a03e2
Signed by: kumi
GPG key ID: 5D1CE6AF1805ECA2

View file

@ -16,9 +16,9 @@ class Request:
def fromEnv(self, env):
if env["REQUEST_METHOD"] == "POST":
self.args = cgi.parse_qs(env['wsgi.input'].readline().decode(), True)
self.args = parse_qs(env['wsgi.input'].readline().decode(), True)
elif env["REQUEST_METHOD"] == "GET":
self.args = cgi.parse_qs(env['QUERY_STRING'], True)
self.args = parse_qs(env['QUERY_STRING'], True)
else:
raise IllegalMethodException()