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