Strip user:pass from cached URLs

This commit is contained in:
Joseph Hall 2017-01-03 13:26:19 -07:00
parent ec60f9c721
commit eae3a435dd

View file

@ -807,6 +807,9 @@ class Client(object):
else:
netloc = url_data.netloc
# Strip user:pass from URLs
netloc = netloc.split('@')[-1]
if cachedir is None:
cachedir = self.opts['cachedir']
elif not os.path.isabs(cachedir):