Set content type

main
Bob Mottram 2020-06-19 12:07:46 +01:00
parent e48f019d56
commit 4ae51bda6e
1 changed files with 2 additions and 0 deletions

View File

@ -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: