Merge pull request #38541 from techhat/issue38187

Strip user:pass from cached URLs
This commit is contained in:
Mike Place 2017-01-04 08:39:56 -07:00 committed by GitHub
commit 50242c7f17

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):