From e980e70d6e39025a58c2176d884252b8184bce5a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 24 Feb 2020 19:39:10 +0000 Subject: [PATCH] Encode --- daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon.py b/daemon.py index 38ab2c693..198de8947 100644 --- a/daemon.py +++ b/daemon.py @@ -952,6 +952,7 @@ class PubServer(BaseHTTPRequestHandler): nickname,self.server.domain, \ postJsonObject) if msg: + msg=msg.encode() self._set_headers('text/html',len(msg),cookie) self._write(msg) return