From d5670d9b089c3b196679c91b05e7bfaf7cc8ddf6 Mon Sep 17 00:00:00 2001 From: A_D Date: Thu, 28 Jan 2021 18:13:16 +0200 Subject: [PATCH] Simplified GET response --- protocol.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/protocol.py b/protocol.py index d5fbb550..f1eb015c 100644 --- a/protocol.py +++ b/protocol.py @@ -352,9 +352,8 @@ else: # Linux / Run from source if self.parse(): self.send_header('Content-Type', 'text/html') self.end_headers() - self.wfile.write( - '{}'.format('Authentication successful').encode('utf-8')) - self.wfile.write('

{}

'.format('Authentication successful').encode('utf-8')) + self.wfile.write('Authentication successful'.encode('utf-8')) + self.wfile.write('

Authentication successful

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