Skip to content

Commit

Permalink
Use raw dir name to serve static web content (#6107)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Dec 23, 2024
1 parent 1556468 commit f18ebbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,7 @@ def add_routes(self):
self.app.add_routes(self.routes)

for name, dir in nodes.EXTENSION_WEB_DIRS.items():
self.app.add_routes([
web.static('/extensions/' + urllib.parse.quote(name), dir),
])
self.app.add_routes([web.static('/extensions/' + name, dir)])

self.app.add_routes([
web.static('/', self.web_root),
Expand Down

0 comments on commit f18ebbd

Please sign in to comment.