view pythonServer-legacy.py @ 2126:1c20619c6321

Fix bugs #1628, #1483
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 23 Feb 2016 16:19:29 +0000
parents d9b9f707f862
children
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()