mirror of https://gitlab.com/bashrc2/epicyon
Missing plus
parent
7654cf9fe4
commit
b634f11f50
15
daemon.py
15
daemon.py
|
@ -967,13 +967,14 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
def _http_return_code(self, http_code: int, http_description: str,
|
def _http_return_code(self, http_code: int, http_description: str,
|
||||||
long_description: str, etag: str) -> None:
|
long_description: str, etag: str) -> None:
|
||||||
msg = \
|
msg = \
|
||||||
'<html><head><title>' + str(http_code) + '</title></head>' \
|
'<html><head><title>' + str(http_code) + '</title></head>' + \
|
||||||
'<body bgcolor="linen" text="black">' \
|
'<body bgcolor="linen" text="black">' + \
|
||||||
'<div style="font-size: 400px; ' \
|
'<div style="font-size: 400px; ' + \
|
||||||
'text-align: center;">' + str(http_code) + '</div>' \
|
'text-align: center;">' + str(http_code) + '</div>' + \
|
||||||
'<div style="font-size: 128px; ' \
|
'<div style="font-size: 128px; ' + \
|
||||||
'text-align: center; font-variant: ' \
|
'text-align: center; font-variant: ' + \
|
||||||
'small-caps;"><p role="alert">' + http_description + '</p></div>' \
|
'small-caps;"><p role="alert">' + http_description + \
|
||||||
|
'</p></div>' + \
|
||||||
'<div style="text-align: center;" aria-live="polite">' + \
|
'<div style="text-align: center;" aria-live="polite">' + \
|
||||||
long_description + '</div></body></html>'
|
long_description + '</div></body></html>'
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue