main2
Bob Mottram 2019-10-23 23:11:27 +01:00
parent a621ee6d0f
commit fdb26967b3
1 changed files with 5 additions and 1 deletions

View File

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