From 3117f7ca3efdf760e0855cddda0f7aca5b7dc678 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 11 Sep 2019 12:22:44 +0100 Subject: [PATCH] Fixes do_GET()'s use of .write() --- protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol.py b/protocol.py index 98e6611f..6fdb6e59 100644 --- a/protocol.py +++ b/protocol.py @@ -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('%s' % _('Authentication successful').encode('utf-8')) - self.wfile.write('

%s

' % _('Authentication successful').encode('utf-8')) + self.wfile.write('{}'.format('Authentication successful').encode('utf-8')) + self.wfile.write('

{}

'.format('Authentication successful').encode('utf-8')) else: self.end_headers()