mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-01 03:56:21 +02:00
Update yt_dlp/networking/_websockets.py
This commit is contained in:
parent
b41348b988
commit
8ea52ec344
@ -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…
Reference in New Issue
Block a user