fixed unicode listener options
parent
b7cff0456b
commit
c8d4d2aa27
2
empire
2
empire
|
@ -721,7 +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():
|
||||
if type(values) == unicode
|
||||
if type(values) == unicode:
|
||||
values = values.encode('utf8')
|
||||
if option == "Name":
|
||||
listenerName = values
|
||||
|
|
Loading…
Reference in New Issue