From 4ae51bda6e7d18abc263f749ca35993347e09b72 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 Jun 2020 12:07:46 +0100 Subject: [PATCH] Set content type --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index 5ff123154..94507f008 100644 --- a/daemon.py +++ b/daemon.py @@ -542,11 +542,13 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Location', redirect) self.send_header('Host', callingDomain) self.send_header('InstanceID', self.server.instanceId) + self.send_header('Content-type', 'text/html; charset=utf-8') self.send_header('Content-Length', '0') self.send_header('X-Robots-Tag', 'noindex') self.end_headers() if not httpRedirect: self.Path = redirect.replace(callingDomain, '') + print('Redirect path: ' + self.Path) self.do_GET() def _httpReturnCode(self, httpCode: int, httpDescription: str) -> None: