1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-01 02:37:25 +01:00

[utils] Unquote crendentials passed to SOCKS proxies

Fixes #9450
This commit is contained in:
Yen Chi Hsuan 2016-05-12 18:57:53 +08:00
parent a3fa6024d6
commit 7581bfc958
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30

View File

@ -50,6 +50,7 @@ from .compat import (
compat_urllib_parse,
compat_urllib_parse_urlencode,
compat_urllib_parse_urlparse,
compat_urllib_parse_unquote_plus,
compat_urllib_request,
compat_urlparse,
compat_xpath,
@ -886,7 +887,8 @@ def make_socks_conn_class(base_class, socks_proxy):
socks_type,
url_components.hostname, url_components.port or 1080,
True, # Remote DNS
url_components.username, url_components.password
compat_urllib_parse_unquote_plus(url_components.username),
compat_urllib_parse_unquote_plus(url_components.password),
)
class SocksConnection(base_class):