-
-
Save zjiekai/ebd027c76fbbf9794669dcfc817103f9 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
import SimpleHTTPServer | |
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def translate_path(self, path): | |
if path == '/lightwallet' or path == '/lightwallet/login' or path[:19] == '/lightwallet/wallet': | |
path = '/lightwallet/index.html' | |
p0 = SimpleHTTPServer.SimpleHTTPRequestHandler.translate_path(self, path) | |
return p0 | |
if __name__ == '__main__': | |
SimpleHTTPServer.test(HandlerClass=MyHandler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment