From fdb26967b3e932ce0d42b78230ccc0409174b5f1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 23:11:27 +0100 Subject: [PATCH] Redirect --- daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index a4b0d3af..191992c6 100644 --- a/daemon.py +++ b/daemon.py @@ -651,7 +651,11 @@ class PubServer(BaseHTTPRequestHandler): if authorized: if self.path=='/': if cookie and self.headers.get('Nickname'): - self.path='/users/'+self.headers['Nickname']+'/inbox' + self.send_header('Location', '/users/'+self.headers['Nickname']+'/inbox') + self.send_header('Content-Length', '0') + self.send_header('X-Robots-Tag','noindex') + self.end_headers() + return if self.server.debug: print('GET Authorization granted') else: