v1.0.176: fix self.path → urlparse for ?v= cache bust
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user