mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
a9ab1873cd
commit
f20fcdb300
15
daemon.py
15
daemon.py
|
@ -553,10 +553,6 @@ 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',
|
|
||||||
# 'noindex, nofollow, noarchive, nosnippet')
|
|
||||||
# self.send_header('Cache-Control', 'public')
|
|
||||||
# self.send_header('Referrer-Policy', 'origin')
|
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
def _logout_headers(self, fileFormat: str, length: int,
|
def _logout_headers(self, fileFormat: str, length: int,
|
||||||
|
@ -568,10 +564,6 @@ 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',
|
|
||||||
# 'noindex, nofollow, noarchive, nosnippet')
|
|
||||||
# self.send_header('Cache-Control', 'public')
|
|
||||||
# self.send_header('Referrer-Policy', 'origin')
|
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
def _logout_redirect(self, redirect: str, cookie: str,
|
def _logout_redirect(self, redirect: str, cookie: str,
|
||||||
|
@ -586,10 +578,6 @@ 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',
|
|
||||||
# 'noindex, nofollow, noarchive, nosnippet')
|
|
||||||
# self.send_header('Cache-Control', 'public')
|
|
||||||
# self.send_header('Referrer-Policy', 'origin')
|
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
def _set_headers_base(self, fileFormat: str, length: int, cookie: str,
|
def _set_headers_base(self, fileFormat: str, length: int, cookie: str,
|
||||||
|
@ -607,8 +595,6 @@ 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',
|
|
||||||
# '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', 'max-age=31536000')
|
self.send_header('Cache-Control', 'max-age=31536000')
|
||||||
self.send_header('Cache-Control', 'public')
|
self.send_header('Cache-Control', 'public')
|
||||||
|
@ -616,7 +602,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
def _set_headers(self, fileFormat: str, length: int, cookie: str,
|
def _set_headers(self, fileFormat: str, length: int, cookie: str,
|
||||||
callingDomain: str) -> None:
|
callingDomain: str) -> None:
|
||||||
self._set_headers_base(fileFormat, length, cookie, callingDomain)
|
self._set_headers_base(fileFormat, length, cookie, callingDomain)
|
||||||
# self.send_header('Cache-Control', 'public, max-age=0')
|
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
def _set_headers_head(self, fileFormat: str, length: int, etag: str,
|
def _set_headers_head(self, fileFormat: str, length: int, etag: str,
|
||||||
|
|
Loading…
Reference in New Issue