This commit is contained in:
Channel Cat 2016-10-03 00:45:59 -07:00
parent fed5c01efb
commit 4489f536da

View File

@ -37,7 +37,8 @@ class Request:
if self.parsed_args is None:
if self.query_string:
parsed_query_string = parse_qs(self.query_string).items()
self.parsed_args = {k:[_v.decode('utf-8') for _v in v] if len(v)>1 else v[0].decode('utf-8') for k,v in parsed_query_string}
self.parsed_args = {k:[_v for _v in v] if len(v)>1 else v[0] for k,v in parsed_query_string}
print(self.parsed_args)
else:
self.parsed_args = {}