Skip to content

Instantly share code, notes, and snippets.

@tkgwy
tkgwy / serve-python2.py
Last active Feb 15, 2019
SimpleHTTPServer for SPA
View serve-python2.py
import os
import sys
import urlparse
import SimpleHTTPServer
import BaseHTTPServer
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
url = urlparse.urlparse(self.path)
You can’t perform that action at this time.