Update yt_dlp/networking/_websockets.py

This commit is contained in:
coletdjnz 2024-05-03 17:04:33 +12:00 committed by GitHub
parent b41348b988
commit 8ea52ec344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ def create_http_connect_conn(
if username is not None or password is not None:
proxy_headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(
f'{username}:{password}'.encode('utf-8')).decode('utf-8')
f'{username or ""}:{password or ""}'.encode('utf-8')).decode('utf-8')
proxy_url_parsed = urllib.parse.urlparse(proxy_url)
request_url_parsed = parse_uri(url)