Created
July 17, 2012 19:06
-
-
Save anonymous/3131316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import SimpleHTTPServer | |
import SocketServer | |
PORT = 7998 | |
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler | |
# add the .webapp content type | |
Handler.extensions_map['.webapp'] = 'application/x-web-app-manifest+json' | |
httpd = SocketServer.TCPServer(("", PORT), Handler) | |
print "Serving at port", PORT | |
httpd.serve_forever() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment