Skip to content

Commit

Permalink
fix: handle jupyter url behind a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
renambot committed Jun 12, 2024
1 parent 5d764b8 commit eba50a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/src/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_jupyter_token(jupyter_hub_type="LOCAL"):
def build_jupyter_url(url):
# Build a valid Jupyter URL
# Get the Jupyter token
token = get_jupyter_token(os.getenv('JUPYTER_HUB_TYPE'))
token = get_jupyter_token(os.getenv("JUPYTER_HUB_TYPE"))
# Concat the URL and the token
parsed_url = urlparse(url + "?token=" + token)
if not all([parsed_url.scheme, parsed_url.netloc, parsed_url.query]):
Expand Down

0 comments on commit eba50a3

Please sign in to comment.