From 3713e9943fa6eb249b0e4d0e3f6943e2bb2f782c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Jul 2021 09:45:36 +0100 Subject: [PATCH] Encode redirects --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index d0713e567..9cd6dd183 100644 --- a/daemon.py +++ b/daemon.py @@ -731,7 +731,7 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Cookie', cookieStr) else: self.send_header('Set-Cookie', cookieStr) - self.send_header('Location', redirect) + self.send_header('Location', redirect.encode('utf-8')) self.send_header('Host', callingDomain) self.send_header('InstanceID', self.server.instanceId) self.send_header('Content-Length', '0')