Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 22, 2021
1 parent 197f119 commit e2dbf4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mitama/utils/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def handle(self, req: Request):
path_ = req.params["path"]
if path_ == "/":
path_ = "./"
elif path_[0] == "/":
path_ = path_[1:]
filename = path / path_
if filename.is_file():
mime = guess_type(str(filename)) or ("application/octet-stream",)
Expand Down

0 comments on commit e2dbf4e

Please sign in to comment.