Fixes do_GET()'s use of .write()

This commit is contained in:
Athanasius committed 2019-09-26 11:40:41 +01:00
1 parent 457c533980
commit 3117f7ca3e
1 file changed
+2 -2
+2 -2
View File
@@ -257,8 +257,8 @@ else: # Linux / Run from source
if self.parse():
self.send_header('Content-Type', 'text/html')
self.end_headers()
self.wfile.write('<html><head><title>%s</title></head>' % _('Authentication successful').encode('utf-8'))
self.wfile.write('<body><p>%s</p></body>' % _('Authentication successful').encode('utf-8'))
self.wfile.write('<html><head><title>{}</title></head>'.format('Authentication successful').encode('utf-8'))
self.wfile.write('<body><p>{}</p></body>'.format('Authentication successful').encode('utf-8'))
else:
self.end_headers()