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