remove junk

This commit is contained in:
qazal 2025-06-13 15:28:49 +03:00
commit 4987e7bec1
3 changed files with 1 additions and 111378 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -125,7 +125,7 @@ class Handler(BaseHTTPRequestHandler):
def do_GET(self):
ret, status_code, content_type = b"", 200, "text/html"
if (fn:={"/":"index", "/profiler":"perfetto", "/chrome":"chrome"}.get((url:=urlparse(self.path)).path)):
if (fn:={"/":"index", "/profiler":"perfetto"}.get((url:=urlparse(self.path)).path)):
with open(os.path.join(os.path.dirname(__file__), f"{fn}.html"), "rb") as f: ret = f.read()
elif self.path.startswith(("/assets/", "/js/")) and '/..' not in self.path:
try: