Add line break to server response

This commit is contained in:
Pierre HUBERT 2024-09-23 09:51:35 +02:00
parent 7e5b1007a3
commit c8917f3b71

View File

@ -10,7 +10,7 @@ class handler(BaseHTTPRequestHandler):
self.send_header('Content-type','text/html')
self.end_headers()
message = "Hello, World! Here is simple HTTP response..."
message = "Hello, World! Here is simple HTTP response...\n"
self.wfile.write(bytes(message, "utf8"))
with HTTPServer(('', PORT), handler) as server: