Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2012 19:06
Show Gist options
  • Save anonymous/3131316 to your computer and use it in GitHub Desktop.
Save anonymous/3131316 to your computer and use it in GitHub Desktop.
#!/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