mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
misc fixes
This commit is contained in:
parent
f964b72450
commit
0d520bc008
1 changed files with 1 additions and 5 deletions
|
@ -115,7 +115,6 @@ class WebsocketsRH(WebSocketRequestHandler):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.__logging_handlers = {}
|
||||
self.verbose = True
|
||||
for name in ('websockets.client', 'websockets.server'):
|
||||
logger = logging.getLogger(name)
|
||||
handler = logging.StreamHandler(stream=sys.stdout)
|
||||
|
@ -275,14 +274,11 @@ def create_http_connect_conn(
|
|||
timeout=None,
|
||||
ssl_context=None,
|
||||
source_address=None,
|
||||
headers=None,
|
||||
username=None,
|
||||
password=None,
|
||||
):
|
||||
|
||||
proxy_headers = HTTPHeaderDict({
|
||||
**(headers or {}),
|
||||
})
|
||||
proxy_headers = HTTPHeaderDict()
|
||||
|
||||
if username is not None or password is not None:
|
||||
proxy_headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(
|
||||
|
|
Loading…
Reference in a new issue