diff --git a/scripts/autoserve.py b/scripts/autoserve.py index 824a26c..ab6f149 100644 --- a/scripts/autoserve.py +++ b/scripts/autoserve.py @@ -70,6 +70,11 @@ class Server(http.server.SimpleHTTPRequestHandler): self.end_headers() return + if not os.path.exists(path.strip('/')): + self.send_response(404) + self.end_headers() + return + # send 200 response self.send_response(200) # send response headers