comparison pythonServer-legacy.py @ 1541:c115a0b304b3

Bug Fix #1313: Added 404 crash and dump when audioObject cannot obtain URL.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 01 Jul 2015 11:11:20 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 1541:c115a0b304b3
1 import SimpleHTTPServer
2 import SocketServer
3
4 PORT = 8080
5
6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
7
8 httpd = SocketServer.TCPServer(("", PORT), Handler)
9
10 print "serving at port", PORT
11 httpd.serve_forever()