Commit 0e319928 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fixe some binary encoding bugs with the new version of cherrypy

parent 5e60b9cb
......@@ -307,14 +307,14 @@ class JFlowServer (object):
kwargs_modified[parts[0]] = []
multi_sub_params[parts[0]] = {}
if parts[2] in multi_sub_params[parts[0]]:
multi_sub_params[parts[0]][parts[2]].append((parts[1], kwargs[key].encode('utf8')))
multi_sub_params[parts[0]][parts[2]].append((parts[1], kwargs[key]))
else:
multi_sub_params[parts[0]][parts[2]] = [(parts[1], kwargs[key].encode('utf8'))]
multi_sub_params[parts[0]][parts[2]] = [(parts[1], kwargs[key])]
for key in list(kwargs.keys()):
parts = key.split(JFlowServer.MULTIPLE_TYPE_SPLITER)
# split append values
new_values = kwargs[key].encode('utf8').split(JFlowServer.APPEND_PARAM_SPLITER)
new_values = kwargs[key].split(JFlowServer.APPEND_PARAM_SPLITER)
if len(new_values) == 1:
new_values = new_values[0]
# if this is a classic Parameter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment