-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
🐞 Bug Report
when use 'StaticFiles',as following the example code in docs:
app.register(StaticFiles(directory='static'), prefix="/static")
got
RuntimeError: Client disconnected before response was sent
INFO: 127.0.0.1:62593 - "GET /tabler/dist/js/tabler.min.js HTTP/1.1" 500 Internal Server Error
INFO: 127.0.0.1:62594 - "GET /dist/img/user.png HTTP/1.1" 500 Internal Server Error
change the statement to
app.register(StaticFiles(directory='static'), prefix="static")
got
INFO: 127.0.0.1:62653 - "GET /static/tabler/dist/js/tabler.min.js HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:62653 - "GET /static/dist/img/user.png HTTP/1.1" 404 Not Found
when use 'StaticFilesHandler', all are OK
INFO: 127.0.0.1:62045 - "GET /static/base/bootstrap-table-1.24.0/dist/locale/bootstrap-table-zh-CN.min.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:62044 - "GET /static/tabler/dist/js/tabler.min.js HTTP/1.1" 200 OK
INFO: 127.0.0.1:62044 - "GET /static/dist/img/user.png HTTP/1.1" 200 OK
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working