Skip to content

Instantly share code, notes, and snippets.

@weisjohn
Created December 5, 2012 20:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weisjohn/4219046 to your computer and use it in GitHub Desktop.
Save weisjohn/4219046 to your computer and use it in GitHub Desktop.
simple python server
import SimpleHTTPServer;
map = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map;
map[""] = "text/plain"
for key, value in map.items():
map[key] = value + ";charset=UTF-8"
SimpleHTTPServer.test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment