fixed API listener options handling to prevent unicode errors
parent
4469f61ec2
commit
39b26e95d7
1
empire
1
empire
|
@ -721,6 +721,7 @@ def start_restful_api(empireMenu, suppress=False, username=None, password=None,
|
|||
listenerObject = main.listeners.loadedListeners[listener_type]
|
||||
# set all passed options
|
||||
for option, values in request.json.iteritems():
|
||||
values = values.encode('utf8')
|
||||
if option == "Name":
|
||||
listenerName = values
|
||||
|
||||
|
|
Loading…
Reference in New Issue