This commit is contained in:
veelion 2018-06-24 19:59:09 +08:00
parent 01257f65a6
commit 6f4b1fbd0d

View File

@ -127,7 +127,7 @@ class Request(dict):
try: try:
if content_type == 'application/x-www-form-urlencoded': if content_type == 'application/x-www-form-urlencoded':
self.parsed_form = RequestParameters( self.parsed_form = RequestParameters(
parse_qs(self.body.decode('utf-8'))) parse_qs(self.body.decode('utf-8'), encoding='latin1'))
elif content_type == 'multipart/form-data': elif content_type == 'multipart/form-data':
# TODO: Stream this instead of reading to/from memory # TODO: Stream this instead of reading to/from memory
boundary = parameters['boundary'].encode('utf-8') boundary = parameters['boundary'].encode('utf-8')