Browse Source

fix wrong arguments passed to tornado.web.StaticFileHandler

master
lilydjwg 2 years ago
parent
commit
1d532f3af2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.py

+ 1
- 1
main.py View File

@@ -180,7 +180,7 @@ def main():
application = tornado.web.Application([
(r"/", IndexHandler),
(r"/" + SCRIPT_PATH, ToolHandler),
(r"/([a-fA-F0-9]{2}/[a-fA-F0-9]{38})(\.\w*)?", tornado.web.StaticFileHandler, {
(r"/([a-fA-F0-9]{2}/[a-fA-F0-9]{38})(?:\.\w*)?", tornado.web.StaticFileHandler, {
'path': options.datadir,
}),
(r"/([a-fA-F0-9/]+(?:\.\w*)?)", HashHandler),


Loading…
Cancel
Save