Skip to content

Commit

Permalink
Fix: Even more fixing for Github
Browse files Browse the repository at this point in the history
  • Loading branch information
neoapps-dev committed Sep 9, 2024
1 parent 4eeff1e commit b3a047b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def resolve_potato(pdomain, subpath):
if destination.startswith("gh/"):
try:
_, user, repo, branch = destination.split('/')
if not subpath:
subpath = "web.potato"
content, status_code = fetch_github_content(user, repo, branch, subpath)
mimetype, _ = mimetypes.guess_type(subpath)
return Response(content, status=status_code, mimetype=mimetype or 'text/html')
Expand Down

0 comments on commit b3a047b

Please sign in to comment.