Remove X-robots

merge-requests/30/head
Bob Mottram 2021-05-31 22:51:30 +01:00
parent a9e6c0a533
commit 1d3ff5f628
1 changed files with 12 additions and 12 deletions

View File

@ -606,8 +606,8 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Host', callingDomain) self.send_header('Host', callingDomain)
self.send_header('WWW-Authenticate', self.send_header('WWW-Authenticate',
'title="Login to Epicyon", Basic realm="epicyon"') 'title="Login to Epicyon", Basic realm="epicyon"')
self.send_header('X-Robots-Tag', # self.send_header('X-Robots-Tag',
'noindex, nofollow, noarchive, nosnippet') # 'noindex, nofollow, noarchive, nosnippet')
# self.send_header('Cache-Control', 'public') # self.send_header('Cache-Control', 'public')
# self.send_header('Referrer-Policy', 'origin') # self.send_header('Referrer-Policy', 'origin')
self.end_headers() self.end_headers()
@ -621,8 +621,8 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Host', callingDomain) self.send_header('Host', callingDomain)
self.send_header('WWW-Authenticate', self.send_header('WWW-Authenticate',
'title="Login to Epicyon", Basic realm="epicyon"') 'title="Login to Epicyon", Basic realm="epicyon"')
self.send_header('X-Robots-Tag', # self.send_header('X-Robots-Tag',
'noindex, nofollow, noarchive, nosnippet') # 'noindex, nofollow, noarchive, nosnippet')
# self.send_header('Cache-Control', 'public') # self.send_header('Cache-Control', 'public')
# self.send_header('Referrer-Policy', 'origin') # self.send_header('Referrer-Policy', 'origin')
self.end_headers() self.end_headers()
@ -639,8 +639,8 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Host', callingDomain) self.send_header('Host', callingDomain)
self.send_header('InstanceID', self.server.instanceId) self.send_header('InstanceID', self.server.instanceId)
self.send_header('Content-Length', '0') self.send_header('Content-Length', '0')
self.send_header('X-Robots-Tag', # self.send_header('X-Robots-Tag',
'noindex, nofollow, noarchive, nosnippet') # 'noindex, nofollow, noarchive, nosnippet')
# self.send_header('Cache-Control', 'public') # self.send_header('Cache-Control', 'public')
# self.send_header('Referrer-Policy', 'origin') # self.send_header('Referrer-Policy', 'origin')
self.end_headers() self.end_headers()
@ -660,8 +660,8 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Cookie', cookieStr) self.send_header('Cookie', cookieStr)
self.send_header('Host', callingDomain) self.send_header('Host', callingDomain)
self.send_header('InstanceID', self.server.instanceId) self.send_header('InstanceID', self.server.instanceId)
self.send_header('X-Robots-Tag', # self.send_header('X-Robots-Tag',
'noindex, nofollow, noarchive, nosnippet') # 'noindex, nofollow, noarchive, nosnippet')
self.send_header('X-Clacks-Overhead', 'GNU Natalie Nguyen') self.send_header('X-Clacks-Overhead', 'GNU Natalie Nguyen')
# self.send_header('Cache-Control', 'public') # self.send_header('Cache-Control', 'public')
# self.send_header('Referrer-Policy', 'origin') # self.send_header('Referrer-Policy', 'origin')
@ -749,8 +749,8 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Host', callingDomain) self.send_header('Host', callingDomain)
self.send_header('InstanceID', self.server.instanceId) self.send_header('InstanceID', self.server.instanceId)
self.send_header('Content-Length', '0') self.send_header('Content-Length', '0')
self.send_header('X-Robots-Tag', # self.send_header('X-Robots-Tag',
'noindex, nofollow, noarchive, nosnippet') # 'noindex, nofollow, noarchive, nosnippet')
# self.send_header('Cache-Control', 'public') # self.send_header('Cache-Control', 'public')
# self.send_header('Referrer-Policy', 'origin') # self.send_header('Referrer-Policy', 'origin')
self.end_headers() self.end_headers()
@ -772,8 +772,8 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Content-Type', 'text/html; charset=utf-8') self.send_header('Content-Type', 'text/html; charset=utf-8')
msgLenStr = str(len(msg)) msgLenStr = str(len(msg))
self.send_header('Content-Length', msgLenStr) self.send_header('Content-Length', msgLenStr)
self.send_header('X-Robots-Tag', # self.send_header('X-Robots-Tag',
'noindex, nofollow, noarchive, nosnippet') # 'noindex, nofollow, noarchive, nosnippet')
# self.send_header('Cache-Control', 'public') # self.send_header('Cache-Control', 'public')
# self.send_header('Referrer-Policy', 'origin') # self.send_header('Referrer-Policy', 'origin')
self.end_headers() self.end_headers()