Fix function calls...
This commit is contained in:
parent
19834f6a5d
commit
0b045a03e2
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue