diff --git a/supervisor_stdout.py b/supervisor_stdout.py index b128465..2092d86 100644 --- a/supervisor_stdout.py +++ b/supervisor_stdout.py @@ -18,6 +18,7 @@ def main(): write_stdout('RESULT %s\n%s'%(len(data.encode("utf-8")), data)) # transition from READY to ACKNOWLEDGED def event_handler(event, response): + response = response.decode() line, data = response.split('\n', 1) headers = dict([ x.split(':') for x in line.split() ]) lines = data.split('\n')