Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

support user-related mode StaticHandler #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vibora/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def handle(self, request: Request):
raise StaticNotFound()
if path not in self.cache or self.cache[path].needs_update:
for root_path in self.paths:
real_path = root_path + path
real_path = os.path.expanduser(root_path) + path
if self.exists(real_path):
cached = CacheEntry(real_path, self.available_cache_size)
if isinstance(cached.response, CachedResponse):
Expand Down