Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jan 1, 2024
1 parent c536020 commit 0053683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiddifypanel/hutils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def parse_login_id(raw_id) -> Tuple[Any | None, str | None]:
def add_basic_auth_to_url(url: str, username: str, password: str) -> str:
if 'https://' in url:
return url.replace('https://', f'https://{username}:{password}@')
elif 'http:// ' in url:
elif 'http://' in url:
return url.replace('http://', f'http://{username}:{password}@')
else:
return url
Expand Down

0 comments on commit 0053683

Please sign in to comment.