Update yt_dlp/networking/_websockets.py

pull/9625/head
coletdjnz 3 weeks ago committed by GitHub
parent b41348b988
commit 8ea52ec344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)

Loading…
Cancel
Save