From 39b26e95d7f85a31ff3ad068478742b2a657ad58 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 1 Feb 2018 14:09:52 -0700 Subject: [PATCH] fixed API listener options handling to prevent unicode errors --- empire | 1 + 1 file changed, 1 insertion(+) diff --git a/empire b/empire index 6294147..4fe6ead 100755 --- a/empire +++ b/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