mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3: rpcserver: decode input because json requires string
json library parses string so input must be decoded https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
@@ -195,7 +195,7 @@ def read_input(environ):
|
||||
length = int(environ.get('CONTENT_LENGTH'))
|
||||
except (ValueError, TypeError):
|
||||
return
|
||||
return environ['wsgi.input'].read(length)
|
||||
return environ['wsgi.input'].read(length).decode('utf-8')
|
||||
|
||||
|
||||
def params_2_args_options(params):
|
||||
|
||||
Reference in New Issue
Block a user