1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 14:25:46 +00:00

TESTS: separated containers: fix indentation and remove dependency over jwilder/whoami image

This commit is contained in:
Thomas LEVEIL
2017-02-17 01:09:53 +01:00
parent 85370fa31f
commit 9620be91fa
5 changed files with 53 additions and 43 deletions

View File

@ -17,6 +17,9 @@ class Handler(http.server.SimpleHTTPRequestHandler):
elif self.path == "/port":
response = "answer from port %s\n" % PORT
self.wfile.write(response.encode())
elif self.path == "/":
response = "I'm %s\n" % os.environ['HOSTNAME']
self.wfile.write(response.encode())
else:
self.wfile.write("No route for this path!\n".encode())