This commit is contained in:
Huyuumi 2018-07-29 03:49:37 +09:00
parent 60400dbc3a
commit 056490f336

View File

@ -3569,10 +3569,7 @@ class PerRequestProxyHandler(compat_urllib_request.ProxyHandler):
setattr(self, '%s_open' % type,
lambda r, proxy='__noproxy__', type=type, meth=self.proxy_open:
meth(r, proxy, type))
@property
def proxy_handler(self, proxies=None):
return compat_urllib_request.ProxyHandler.__init__(self, proxies)
compat_urllib_request.ProxyHandler.__init__(self, proxies)
def proxy_open(self, req, proxy, type):
req_proxy = req.headers.get('Ytdl-request-proxy')