Encode redirects

This commit is contained in:
bashrc committed 2021-07-12 09:45:36 +01:00
1 parent 7511af13d0
commit 3713e9943f
1 file changed
+1 -1
+1 -1
View File
@@ -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')