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):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.__logging_handlers = {}
|
self.__logging_handlers = {}
|
||||||
self.verbose = True
|
|
||||||
for name in ('websockets.client', 'websockets.server'):
|
for name in ('websockets.client', 'websockets.server'):
|
||||||
logger = logging.getLogger(name)
|
logger = logging.getLogger(name)
|
||||||
handler = logging.StreamHandler(stream=sys.stdout)
|
handler = logging.StreamHandler(stream=sys.stdout)
|
||||||
|
@ -275,14 +274,11 @@ def create_http_connect_conn(
|
||||||
timeout=None,
|
timeout=None,
|
||||||
ssl_context=None,
|
ssl_context=None,
|
||||||
source_address=None,
|
source_address=None,
|
||||||
headers=None,
|
|
||||||
username=None,
|
username=None,
|
||||||
password=None,
|
password=None,
|
||||||
):
|
):
|
||||||
|
|
||||||
proxy_headers = HTTPHeaderDict({
|
proxy_headers = HTTPHeaderDict()
|
||||||
**(headers or {}),
|
|
||||||
})
|
|
||||||
|
|
||||||
if username is not None or password is not None:
|
if username is not None or password is not None:
|
||||||
proxy_headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(
|
proxy_headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(
|
||||||
|
|
Loading…
Reference in a new issue