mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-07 08:46:30 +01:00
Update yt_dlp/networking/_websockets.py
This commit is contained in:
parent
b41348b988
commit
8ea52ec344
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue