forgot the f-string for a couple of the statements
This commit is contained in:
parent
24a090209e
commit
d5f4559afc
@ -31,7 +31,7 @@ class SimpleHandler(http.server.BaseHTTPRequestHandler):
|
||||
if self.path != '/':
|
||||
message = f"Hello, {self.path[1:]} World! - {version}"
|
||||
else:
|
||||
message = "Hello, World! - {version}"
|
||||
message = f"Hello, World! - {version}"
|
||||
|
||||
self.wfile.write(bytes(message, encoding='utf-8'))
|
||||
return
|
||||
@ -50,7 +50,7 @@ class SimpleHandler(http.server.BaseHTTPRequestHandler):
|
||||
if self.path != '/':
|
||||
message = f"<html><body><h1>Hello, {self.path[1:]} World!</h1><p>{version}</p></body></html>"
|
||||
else:
|
||||
message = "<html><body><h1>Hello, World!</h1><p>{version}</p></body></html>"
|
||||
message = f"<html><body><h1>Hello, World!</h1><p>{version}</p></body></html>"
|
||||
|
||||
self.wfile.write(bytes(message, encoding='utf-8'))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user