v1.0.176: fix self.path → urlparse for ?v= cache bust

This commit is contained in:
2026-06-24 18:27:17 +04:00
parent 0b27832292
commit d44f8f3e6c
+1 -1
View File
@@ -350,7 +350,7 @@ class Handler(BaseHTTPRequestHandler):
def _handle_app_js(self): def _handle_app_js(self):
try: try:
fname = self.path.lstrip("/").replace("static/", "") fname = urlparse(self.path).path.lstrip("/").replace("static/", "")
with open(os.path.join(os.path.dirname(__file__), fname), "rb") as f: with open(os.path.join(os.path.dirname(__file__), fname), "rb") as f:
js = f.read() js = f.read()
self.send_response(200) self.send_response(200)