Fix handling of wsgi.input
wsgi.input is a binary file on python 3.
Showing
... | ... | @@ -918,7 +918,7 @@ class Application(object): |
if environ.get('CONTENT_TYPE') != 'application/x-www-form-urlencoded': | ||
raise BadRequest(b'Unhandled Content-Type') | ||
try: | ||
form_dict = parse_qs(self._read(environ), strict_parsing=True) | ||
form_dict = parse_qs(self._read(environ).decode(), strict_parsing=True) | ||
|
||
origin, = form_dict['origin'] | ||
return_to, = form_dict['return_to'] | ||
grant, = form_dict['grant'] | ||
... | ... |