This commit is contained in:
Nico Schottelius 2016-09-16 17:28:23 +02:00
parent 8add8af36c
commit c6baefdb47
1 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ from http.server import BaseHTTPRequestHandler, HTTPServer
# HTTPRequestHandler class
class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
# GET
# GET
def do_GET(self):
# Send response status code
self.send_response(200)
@ -28,7 +28,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
if __name__ == '__main__':
server_address = ('0.0.0.0', 8000)
httpd = HTTPServer(server_address, testHTTPServer_RequestHandler)
print('running server...')
httpd.serve_forever()
server_address = ('0.0.0.0', 8000)
httpd = HTTPServer(server_address, testHTTPServer_RequestHandler)
print('running server...')
httpd.serve_forever()