From 9da512c87958548d4ed67d5b769dd866c4a79e84 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Aug 2019 13:52:47 +0100 Subject: [PATCH] Encode the string --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index d9d9b2fd..8305d966 100644 --- a/daemon.py +++ b/daemon.py @@ -1033,7 +1033,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.personCache) if deleteStr: self._set_headers('text/html',len(deleteStr),cookie) - self.wfile.write(deleteStr) + self.wfile.write(deleteStr.encode()) self.server.GETbusy=False return self.server.GETbusy=False