Skip to content

Commit

Permalink
Update photos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Jan 15, 2024
1 parent ac7c353 commit 25241ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def view(request: Request, id: str, photo_state: PhotoStateDep) -> FileRes
return FileResponse(info.path)


@router.get('/proxy/{url_encoded}')
@router.get('/proxy/{url_encoded:path}')
@configure_cache(timedelta(days=7), stale=timedelta(days=7))
async def proxy(request: Request, url_encoded: str) -> FileResponse:
# NOTE: ideally we would verify whether url is not a private resource
Expand Down

0 comments on commit 25241ee

Please sign in to comment.