From 4ae525589db995aadc816374b1542ab1d2221eca Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Nov 2019 18:34:17 +0000 Subject: [PATCH] Try decode --- daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 38bbf2be9..108463171 100644 --- a/daemon.py +++ b/daemon.py @@ -2674,7 +2674,11 @@ class PubServer(BaseHTTPRequestHandler): if line>2: postValue+='\n' postValue+=postLines[line] - fields[postKey]=postValue + fields[postKey]=postValue.decode() + if postKey=='message': + print('************************************************************************') + print('message: '+fields[postKey]+' *******************************************') + print('************************************************************************') else: # directly search the binary array for the beginning # of an image