added version to the do_GET() call
This commit is contained in:
parent
4f60c76c86
commit
24a090209e
1 changed files with 2 additions and 2 deletions
|
@ -48,9 +48,9 @@ class SimpleHandler(http.server.BaseHTTPRequestHandler):
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
if self.path != '/':
|
if self.path != '/':
|
||||||
message = f"<html><body><h1>Hello, {self.path[1:]} World!</h1><p>1.0.0</p></body></html>"
|
message = f"<html><body><h1>Hello, {self.path[1:]} World!</h1><p>{version}</p></body></html>"
|
||||||
else:
|
else:
|
||||||
message = "<html><body><h1>Hello, World!</h1><p>1.0.0</p></body></html>"
|
message = "<html><body><h1>Hello, World!</h1><p>{version}</p></body></html>"
|
||||||
|
|
||||||
self.wfile.write(bytes(message, encoding='utf-8'))
|
self.wfile.write(bytes(message, encoding='utf-8'))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue