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:
Martin Basti
2017-01-11 17:13:52 +01:00
parent a9fec1de1a
commit 9739d0354a

View File

@@ -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):