Polite error descriptions

main
Bob Mottram 2022-11-18 16:55:17 +00:00
parent c65be9094b
commit a580cf8658
1 changed files with 2 additions and 2 deletions

View File

@ -1135,8 +1135,8 @@ class PubServer(BaseHTTPRequestHandler):
'<div style="font-size: 128px; ' \
'text-align: center; font-variant: ' \
'small-caps;"><p role="alert">' + http_description + '</p></div>' \
'<div style="text-align: center;">' + long_description + '</div>' \
'</body></html>'
'<div style="text-align: center;" aria-live="polite">' + \
long_description + '</div></body></html>'
msg = msg.encode('utf-8')
self.send_response(http_code)
self.send_header('Content-Type', 'text/html; charset=utf-8')