We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7aa3f1 commit ca500cbCopy full SHA for ca500cb
1 file changed
domain/virtual_fs/mapping/webdav_api.py
@@ -252,7 +252,10 @@ async def dav_get(
252
if full_path != "/":
253
await PermissionService.require_path_permission(user.id, full_path, PathAction.READ)
254
range_header = request.headers.get("Range")
255
- return await VirtualFSService.stream_file(full_path, range_header)
+ try:
256
+ return await VirtualFSService.stream_file(full_path, range_header)
257
+ except FileNotFoundError:
258
+ raise HTTPException(404, detail="Not found")
259
260
261
@router.head("/{path:path}")
0 commit comments