diff --git a/scripts/autoserve.py b/scripts/autoserve.py index deb2e0c..ed1fb51 100644 --- a/scripts/autoserve.py +++ b/scripts/autoserve.py @@ -61,6 +61,8 @@ class Server(http.server.SimpleHTTPRequestHandler): self.end_headers() path = self.path + if path.strip('/') == '': + path = '/index.html' if os.path.isdir(path.strip('/')): path = path.strip('/') + '/index.html' with open(path.strip('/'), 'rb') as f: